HttpContextWrapper.ThreadAbortOnTimeout 属性

定义

获取或设置一个值,此值指示 ASP.NET 运行时是否应在请求超时时,调用为该请求提供服务的线程上的 Abort()Gets or sets a value that specifies whether the ASP.NET runtime should call Abort() on the thread that is servicing this request when the request times out.

public:
 virtual property bool ThreadAbortOnTimeout { bool get(); void set(bool value); };
public override bool ThreadAbortOnTimeout { get; set; }
member this.ThreadAbortOnTimeout : bool with get, set
Public Overrides Property ThreadAbortOnTimeout As Boolean

属性值

Boolean

如果在线程超时时调用 Abort(),则为 true;否则为 falsetrue if Abort() will be called when the thread times out; otherwise, false. 默认值为 trueThe default is true.

注解

有关详细信息,请参阅 HttpContext.ThreadAbortOnTimeoutFor more information, see HttpContext.ThreadAbortOnTimeout.

适用于