SessionStateSection.StateNetworkTimeout プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Web サーバーと状態サーバー間のネットワーク接続がアイドル状態を維持できる時間を取得または設定します。
public:
property TimeSpan StateNetworkTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("stateNetworkTimeout", DefaultValue="00:00:10")]
public TimeSpan StateNetworkTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("stateNetworkTimeout", DefaultValue="00:00:10")>]
member this.StateNetworkTimeout : TimeSpan with get, set
Public Property StateNetworkTimeout As TimeSpan
プロパティ値
セッションが破棄される前に、Web サーバーと状態サーバー間のネットワーク接続がアイドル状態を維持できる時間 (秒単位)。 既定値は 10 秒です。
- 属性
例
次のコード例では、 StateNetworkTimeout プロパティを取得する方法を示します。 SessionStateSection オブジェクトにアクセスする方法については、SessionStateSection クラスのトピックのコード例を参照してください。
// Display the current StateNetworkTimeout property value.
Console.WriteLine("StateNetworkTimeout: {0}",
sessionStateSection.StateNetworkTimeout);
' Display the current StateNetworkTimeout property value.
Console.WriteLine("StateNetworkTimeout: {0}", _
sessionStateSection.StateNetworkTimeout)
注釈
この sessionStateSection 属性は、 Mode プロパティが StateServer に設定されている場合に必要です。