共用方式為


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 發生。

適用於