다음을 통해 공유


SessionStateSection.StateNetworkTimeout 속성

정의

웹 서버와 상태 서버 간의 네트워크 연결이 유휴 상태로 유지될 수 있는 시간을 가져오거나 설정합니다.

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

속성 값

세션이 중단되기 전에 웹 서버와 상태 서버 간의 네트워크 연결이 유휴 상태로 유지될 수 있는 시간(초)입니다. 기본값은 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설정된 경우에 필요합니다.

적용 대상