HttpContextBase.DisposeOnPipelineCompleted(IDisposable) Method

Definition

When implemented in a derived class, enables an object's Dispose() method to be called when the AspNetWebSocket connection part of this request is completed.

C#
public virtual System.Web.ISubscriptionToken DisposeOnPipelineCompleted(IDisposable target);

Parameters

target
IDisposable

The object whose Dispose() method must be called when the AspNetWebSocket connection part of the request is completed.

Returns

The subscription token.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1