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 間內未回應,則重新啟動程序。