ProcessModelSection.PingTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,表示在其後重新啟動沒有回應之背景工作處理序的時間間隔。
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 回應,則會重新開機進程。