FeedAnnouncement.Duration Property

Definition

Gets or sets an optional duration value, specifying how long the announcement will be displayed.

public:
 property TimeSpan Duration { TimeSpan get(); void set(TimeSpan value); };
TimeSpan Duration();

void Duration(TimeSpan value);
public System.TimeSpan Duration { get; set; }
var timeSpan = feedAnnouncement.duration;
feedAnnouncement.duration = timeSpan;
Public Property Duration As TimeSpan

Property Value

Remarks

Once the duration time elapses, the announcement will be removed from the feeds host. The duration is subject to the platform's minimum and maximum threshold limits. Values outside these limits will be adjusted to the nearest threshold value, either minimum or maximum, as appropriate. If not specified, a default duration set by the platform will be used.

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