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 未运行,则进程将重新启动(弹跳)。

适用于