HttpApplication.AddOnPreRequestHandlerExecuteAsync 方法
定义
将指定的 PreRequestHandlerExecute 事件添加到当前请求的异步 PreRequestHandlerExecute 事件处理程序的集合。Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request.
重载
| AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler) |
将指定的 PreRequestHandlerExecute 事件添加到当前请求的异步 PreRequestHandlerExecute 事件处理程序的集合。Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request. |
| AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler, Object) |
将指定的 PreRequestHandlerExecute 事件添加到当前请求的异步 PreRequestHandlerExecute 事件处理程序的集合。Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request. |
AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler)
将指定的 PreRequestHandlerExecute 事件添加到当前请求的异步 PreRequestHandlerExecute 事件处理程序的集合。Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request.
public:
void AddOnPreRequestHandlerExecuteAsync(System::Web::BeginEventHandler ^ bh, System::Web::EndEventHandler ^ eh);
public void AddOnPreRequestHandlerExecuteAsync (System.Web.BeginEventHandler bh, System.Web.EndEventHandler eh);
member this.AddOnPreRequestHandlerExecuteAsync : System.Web.BeginEventHandler * System.Web.EndEventHandler -> unit
Public Sub AddOnPreRequestHandlerExecuteAsync (bh As BeginEventHandler, eh As EndEventHandler)
参数
启动 BeginEventHandler 的异步处理的 PreRequestHandlerExecute。The BeginEventHandler that starts asynchronous processing of the PreRequestHandlerExecute.
结束 EndEventHandler 的异步处理的 PreRequestHandlerExecute。The EndEventHandler that ends asynchronous processing of the PreRequestHandlerExecute.
适用于
AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler, Object)
将指定的 PreRequestHandlerExecute 事件添加到当前请求的异步 PreRequestHandlerExecute 事件处理程序的集合。Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request.
public:
void AddOnPreRequestHandlerExecuteAsync(System::Web::BeginEventHandler ^ beginHandler, System::Web::EndEventHandler ^ endHandler, System::Object ^ state);
public void AddOnPreRequestHandlerExecuteAsync (System.Web.BeginEventHandler beginHandler, System.Web.EndEventHandler endHandler, object state);
member this.AddOnPreRequestHandlerExecuteAsync : System.Web.BeginEventHandler * System.Web.EndEventHandler * obj -> unit
Public Sub AddOnPreRequestHandlerExecuteAsync (beginHandler As BeginEventHandler, endHandler As EndEventHandler, state As Object)
参数
- beginHandler
- BeginEventHandler
启动 BeginEventHandler 的异步处理的 PreRequestHandlerExecute。The BeginEventHandler that starts asynchronous processing of the PreRequestHandlerExecute.
- endHandler
- EndEventHandler
结束 EndEventHandler 的异步处理的 PreRequestHandlerExecute。The EndEventHandler that ends asynchronous processing of the PreRequestHandlerExecute.
- state
- Object
要添加到异步 PreRequestHandlerExecute 集合的关联状态。The associated state to add to the asynchronous PreRequestHandlerExecute collection.