Share via


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

속성 값

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합니다.

적용 대상