SessionStateSection.StateNetworkTimeout 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
웹 서버와 상태 서버 간의 네트워크 연결이 유휴 상태로 유지될 수 있는 시간을 가져오거나 설정합니다.
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설정된 경우에 필요합니다.