HttpContextBase.AddOnRequestCompleted(Action<HttpContextBase>) 方法

定义

在派生类中实现时,引发在请求的 HTTP 部件结束时发生的虚拟事件。

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

参数

callback
Action<HttpContextBase>

HTTP 上下文对象。

返回

订阅标记。

注解

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

适用于