通过


ProcessModelSection.ClientConnectedCheck 属性

定义

获取或设置一个值,该值指示请求在队列中保留多长时间。

public:
 property TimeSpan ClientConnectedCheck { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("clientConnectedCheck", DefaultValue="00:00:05")]
public TimeSpan ClientConnectedCheck { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("clientConnectedCheck", DefaultValue="00:00:05")>]
member this.ClientConnectedCheck : TimeSpan with get, set
Public Property ClientConnectedCheck As TimeSpan

属性值

指示 TimeSpan 队列时间的值。 默认值是 5 秒。

属性

示例

下面的代码示例演示如何访问和修改 ClientConnectedCheck 属性。


// Get the current ClientConnectedCheck property value.
TimeSpan clConnectCheck = 
 processModelSection.ClientConnectedCheck;

// Set the ClientConnectedCheck property to
// TimeSpan.Parse("00:15:00").
processModelSection.ClientConnectedCheck = 
    TimeSpan.Parse("00:15:00");
' Get the current ClientConnectedCheck property value.
   Dim clConnectCheck As TimeSpan = _
   processModelSection.ClientConnectedCheck

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

注解

此属性指定请求在 ASP.NET 执行客户端连接检查之前排队的时间。

注释

如果在请求仍排队时间隔过期,则在将请求传递到 ASP.NET 工作进程进行处理之前,将完成客户端连接检查。

适用于