HttpContextWrapper.AddOnRequestCompleted 方法

定义

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

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

参数

callback
Action<HttpContextBase>

HTTP 上下文对象。

返回

订阅标记。

例外

callback 参数为 null

注解

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

适用于