ProcessModelSection.PingFrequency 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示 ISAPI 擴充功能在何時 ping 工作程序以判斷其是否正在執行。
public:
property TimeSpan PingFrequency { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("pingFrequency", DefaultValue="10675199.02:48:05.4775807")]
public TimeSpan PingFrequency { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("pingFrequency", DefaultValue="10675199.02:48:05.4775807")>]
member this.PingFrequency : TimeSpan with get, set
Public Property PingFrequency As TimeSpan
屬性值
定義 TimeSpan 時間區間。 預設值為 30 秒。
- 屬性
範例
以下程式碼範例說明如何存取該 PingFrequency 物業。
// Get the current PingFrequency property value.
TimeSpan pingFreq =
processModelSection.PingFrequency;
// Set the PingFrequency property to
// TimeSpan.Parse("00:01:00").
processModelSection.PingFrequency =
TimeSpan.Parse("00:01:00");
' Get the current PingFrequency property value.
Dim pingFreq As TimeSpan = _
processModelSection.PingFrequency
' Set the PingFrequency property to
' TimeSpan.Parse("00:01:00").
processModelSection.PingFrequency = _
TimeSpan.Parse("00:01:00")
備註
如果工作程序在間隔結束後 PingFrequency 仍未執行,則會重新啟動(bounc)。