Επεξεργασία

Κοινή χρήση μέσω


SyndicationFeed.TimeToLive Property

Definition

Gets or sets the 'ttl' attribute for the feed.

public:
 property Nullable<TimeSpan> TimeToLive { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? TimeToLive { get; set; }
member this.TimeToLive : Nullable<TimeSpan> with get, set
Public Property TimeToLive As Nullable(Of TimeSpan)

Property Value

A integer number indicating the number of minutes the feed can stay cached before refreshing it from the source.

Remarks

When serialized to RSS 2.0, the TimeToLive property is written to a <ttl> element.

Applies to