다음을 통해 공유


SessionStateSection.Timeout 속성

정의

세션 제한 시간을 가져오거나 설정합니다.

public:
 property TimeSpan Timeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:20:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:01:00")]
public TimeSpan Timeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:20:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:01:00")>]
member this.Timeout : TimeSpan with get, set
Public Property Timeout As TimeSpan

속성 값

세션 제한 시간(분)입니다. 기본값은 20분입니다.

특성

예제

다음 코드 예제에서는 속성을 가져오는 방법을 보여 줍니다 Timeout . 개체에 액세스하는 방법을 알아보려면 클래스 항목의 SessionStateSection 코드 예제를 SessionStateSection 참조하세요.

// Display the current Timeout property value.
Console.WriteLine("Timeout: {0}",
  sessionStateSection.Timeout);
' Display the current Timeout property value.
Console.WriteLine("Timeout: {0}", sessionStateSection.Timeout)

설명

이 속성은 Timeout 525,601분(1년)보다 큰 값으로 설정할 수 없습니다.

적용 대상