Share via


FeedAnnouncement.ExpirationTime Property

Definition

Gets or sets the optional expiration time for the announcement.

public:
 property DateTime ExpirationTime { DateTime get(); void set(DateTime value); };
DateTime ExpirationTime();

void ExpirationTime(DateTime value);
public System.DateTimeOffset ExpirationTime { get; set; }
var dateTime = feedAnnouncement.expirationTime;
feedAnnouncement.expirationTime = dateTime;
Public Property ExpirationTime As DateTimeOffset

Property Value

The expiration time for the announcement.

Remarks

The expiration time indicates when the announcement will no longer be valid for display. For instance, if an announcement is set to expire in five minutes but cannot be provided a display slot due to other queued announcements, the feeds host application will discard it from the queue and it will not be displayed. If the provided expiration time falls at or before the current moment, indicating that it's either immediately expiring or already expired, the platform defaults to a predefined expiration value.

The ExpirationTime and Duration are related in such a way that, at the time an announcement secures a spot for display, the current time plus the duration must not exceed the expiration time.

Applies to