HttpContext.AddOnRequestCompleted(Action<HttpContext>) 方法

定义

引发在请求的 HTTP 部分结束时发生的虚拟事件。

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 上下文对象。

返回

ISubscriptionToken

订阅标记。

例外

callback 参数为 null

注解

在连接开始之前 AspNetWebSocket 发生此事件。

适用于