다음을 통해 공유


FormsAuthenticationConfiguration.Timeout 속성

정의

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

public:
 property TimeSpan Timeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesConverter))]
[System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:30: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.TimeSpanMinutesConverter))>]
[<System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:30: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

속성 값

인증이 만료되는 시간(분)입니다. 기본값은 30분입니다.

특성

예제

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

// Get the current Timeout.
System.TimeSpan currentTimeout =
    formsAuthentication.Timeout;

// Set the Timeout.
formsAuthentication.Timeout =
    System.TimeSpan.FromMinutes(10);
' Get the current Timeout.
Dim currentTimeout As System.TimeSpan =
formsAuthentication.Timeout

' Set the Timeout.
formsAuthentication.Timeout =
System.TimeSpan.FromMinutes(10)

적용 대상

추가 정보