ProcessModelSection.PingTimeout プロパティ

定義

応答しないワーカー プロセスが再起動されてからの時間間隔を示す値を取得または設定します。

public:
 property TimeSpan PingTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("pingTimeout", DefaultValue="10675199.02:48:05.4775807")]
public TimeSpan PingTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("pingTimeout", DefaultValue="10675199.02:48:05.4775807")>]
member this.PingTimeout : TimeSpan with get, set
Public Property PingTimeout As TimeSpan

プロパティ値

時間間隔を定義する TimeSpan 。 既定値は 5 秒です。

属性

次のコード例は、 PingTimeout プロパティにアクセスする方法を示しています。


// Get the current PingTimeout property value.
TimeSpan pingTimeout = 
    processModelSection.PingTimeout;

// Set the PingTimeout property to TimeSpan.Parse("00:00:30").
processModelSection.PingTimeout = 
    TimeSpan.Parse("00:00:30");
' Get the current PingTimeout property value.
   Dim pingTimeout As TimeSpan = _
   processModelSection.PingTimeout

' Set the PingTimeout property to TimeSpan.Parse("00:00:30").
   processModelSection.PingTimeout = _
   TimeSpan.Parse("00:00:30")

注釈

ISAPI 拡張機能は、 PingFrequency 間隔でワーカー プロセスに ping を実行します。 ワーカー プロセスが PingTimeout 時間内に応答しない場合、プロセスは再起動されます。

適用対象