Share via


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" です。 この設定は、コンピューターまたはアプリケーション レベルで設定できます。 この設定が他のレベルで定義されている場合は無視されます。

適用対象