Share via


ProcessModelSection.PingFrequency 属性

定义

获取或设置一个指示时间间隔的值,每隔一个该时间间隔 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 未运行,则会重启 (退回) 。

适用于