共用方式為


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

適用於