CookieHandlerElement.PersistentSessionLifetime プロパティ

定義

ハンドラーによって発行されたクッキーの有効期限を取得または設定します。

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

プロパティ値

クッキーの有効期間を表す TimeSpan。 既定値は 0 日 ("0.0:0:0") です。 値は、0 ("0.0:0:0") から 365 ("365.0:0:0") 日の間の値である必要があります。

属性

注釈

persistentSessionLifetimecookieHandler> 要素の属性を<表します。

適用対象

こちらもご覧ください