HostingEnvironmentSection.IdleTimeout 속성

정의

비활성 애플리케이션을 언로드하기 전의 시간(분)을 가져오거나 설정합니다.

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

속성 값

TimeSpan 비활성 애플리케이션을 언로드하기 전에 지정된 시간(분)입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 IdleTimeout . 이 코드 예제는 클래스에 제공된 더 큰 예제의 HostingEnvironmentSection 일부입니다.

// Display IdleTimout property
Console.WriteLine("Idle Timeout: {0}", configSection.IdleTimeout);
' Display the IdleTimout property
Console.WriteLine("Idle Timeout: {0}", configSection.IdleTimeout)

설명

속성의 IdleTimeout 기본값은 "Infinite"입니다. 이 설정은 컴퓨터 또는 애플리케이션 수준에서 설정할 수 있습니다. 이 설정이 다른 수준에서 정의되면 무시됩니다.

적용 대상