次の方法で共有


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 拡張機能は、ワーカー プロセスに間隔を指定して ping を実行 PingFrequency します。 ワーカー プロセスが期間内に PingTimeout 応答しない場合は、プロセスが再起動されます。

適用対象