ProcessModelSection.ResponseDeadlockInterval 属性

定义

获取或设置一个值,该值指示辅助进程的响应间隔。

public:
 property TimeSpan ResponseDeadlockInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("responseDeadlockInterval", DefaultValue="00:03:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ResponseDeadlockInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("responseDeadlockInterval", DefaultValue="00:03:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.ResponseDeadlockInterval : TimeSpan with get, set
Public Property ResponseDeadlockInterval As TimeSpan

属性值

TimeSpan

定义间隔的 TimeSpan。 默认为 3 分钟。

属性

示例

下面的代码示例说明如何使用 ResponseDeadlockInterval 属性。


// Get the current ResponseDeadlockInterval property value.
TimeSpan respDeadlock  = 
    processModelSection.ResponseDeadlockInterval;

// Set the ResponseDeadlockInterval property to
// TimeSpan.Parse("00:05:00").
processModelSection.ResponseDeadlockInterval = 
    TimeSpan.Parse("00:05:00");
' Get the current ResponseDeadlockInterval property value.
   Dim respDeadlock As TimeSpan = _
   processModelSection.ResponseDeadlockInterval

' Set the ResponseDeadlockInterval property to
' TimeSpan.Parse("00:05:00").
   processModelSection.ResponseDeadlockInterval = _
   TimeSpan.Parse("00:05:00")

注解

如果存在排队的请求,且在时间间隔 ResponseDeadlockInterval内没有响应,则进程将重新启动。

适用于