HttpContext.DisposeOnPipelineCompleted(IDisposable) HttpContext.DisposeOnPipelineCompleted(IDisposable) HttpContext.DisposeOnPipelineCompleted(IDisposable) HttpContext.DisposeOnPipelineCompleted(IDisposable) Method

定義

允許在這個要求的 Dispose() 連接組件完成時,呼叫物件的 AspNetWebSocket 方法。Enables an object's Dispose() method to be called when the AspNetWebSocket connection part of this request is completed.

public:
 System::Web::ISubscriptionToken ^ DisposeOnPipelineCompleted(IDisposable ^ target);
public System.Web.ISubscriptionToken DisposeOnPipelineCompleted (IDisposable target);
member this.DisposeOnPipelineCompleted : IDisposable -> System.Web.ISubscriptionToken
Public Function DisposeOnPipelineCompleted (target As IDisposable) As ISubscriptionToken

參數

target
IDisposable IDisposable IDisposable IDisposable

當要求的Dispose()連接部分完成時,必須呼叫其AspNetWebSocket方法的物件。The object whose Dispose() method must be called when the AspNetWebSocket connection part of the request is completed.

傳回

訂閱語彙基元。The subscription token.

備註

Dispose要求的 HTTP 部分AspNetWebSocket和連接結束之後, 會呼叫目標物件的方法。The Dispose method of the target object is called after both the HTTP part of the request and the AspNetWebSocket connection have ended. HttpContext物件無法供檢查之用。The HttpContext object is not available for inspection.

適用於