CookieHandlerElement.PersistentSessionLifetime Właściwość

Definicja

Pobiera lub ustawia okres istnienia plików cookie wystawionych przez program obsługi.

public:
 property TimeSpan PersistentSessionLifetime { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)]
[System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")]
public TimeSpan PersistentSessionLifetime { get; set; }
[<System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")>]
member this.PersistentSessionLifetime : TimeSpan with get, set
Public Property PersistentSessionLifetime As TimeSpan

Wartość właściwości

Element TimeSpan reprezentujący okres istnienia pliku cookie. Wartość domyślna to 0 dni ("0.0:0:0"). Wartość musi być wartością z zakresu od 0 ("0.0:0:0") do 365 ("365.0:0:0") dni.

Atrybuty

Uwagi

persistentSessionLifetime Reprezentuje atrybut <elementu cookieHandler>.

Dotyczy

Zobacz też