HttpContext.AddOnRequestCompleted(Action<HttpContext>) 方法

定义

引发在请求的 HTTP 部分结束时发生的虚拟事件。Raises a virtual event that occurs when the HTTP part of the request is ending.

public:
 System::Web::ISubscriptionToken ^ AddOnRequestCompleted(Action<System::Web::HttpContext ^> ^ callback);
public System.Web.ISubscriptionToken AddOnRequestCompleted (Action<System.Web.HttpContext> callback);
member this.AddOnRequestCompleted : Action<System.Web.HttpContext> -> System.Web.ISubscriptionToken
Public Function AddOnRequestCompleted (callback As Action(Of HttpContext)) As ISubscriptionToken

参数

callback
Action<HttpContext>

HTTP 上下文对象。The HTTP context object.

返回

订阅标记。The subscription token.

异常

callback 参数为 nullThe callback parameter is null.

注解

此事件发生在 AspNetWebSocket 连接开始之前。This event occurs before the AspNetWebSocket connection begins.

适用于