HttpContext.AddOnRequestCompleted(Action<HttpContext>) HttpContext.AddOnRequestCompleted(Action<HttpContext>) HttpContext.AddOnRequestCompleted(Action<HttpContext>) HttpContext.AddOnRequestCompleted(Action<HttpContext>) Method

定義

引發虛擬事件,該事件會在要求的 HTTP 部分結束時發生。Raises a virtual event that occurs when the HTTP part of the request is ending.

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 內容物件。The HTTP context object.

傳回

訂閱語彙基元。The subscription token.

例外狀況

callback 參數為 nullThe callback parameter is null.

備註

這個事件會在AspNetWebSocket連接開始之前發生。This event occurs before the AspNetWebSocket connection begins.

適用於