HttpRuntimeSection.ShutdownTimeout プロパティ

定義

アプリケーションが終了されるまでの許容アイドル時間を取得または設定します。

public:
 property TimeSpan ShutdownTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:01:30")]
public TimeSpan ShutdownTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:01:30")>]
member this.ShutdownTimeout : TimeSpan with get, set
Public Property ShutdownTimeout As TimeSpan

プロパティ値

アプリケーションが終了されるまでの許容アイドル時間を示す TimeSpan 値。

属性

ShutdownTimeout プロパティを使用する方法を次の例に示します。

// Get the ShutdownTimeout property value.
Response.Write("ShutdownTimeout: " +
  configSection.ShutdownTimeout.ToString() + "<br>");

// Set the ShutdownTimeout property value to 2 minutes.
configSection.ShutdownTimeout = TimeSpan.FromMinutes(2);
' Get the ShutdownTimeout property value.
Response.Write("ShutdownTimeout: " & _
  configSection.ShutdownTimeout.ToString() & "<br>")

' Set the ShutdownTimeout property value to 2 minutes.
configSection.ShutdownTimeout = TimeSpan.FromMinutes(2)

注釈

プロパティは ShutdownTimeout 、アプリケーションが正常にシャットダウンされるまでの時間を示します。 既定値は 90 秒です。

適用対象