Share via


HttpConnection.DisposeAsync Method

Definition

Disposes the connection.

public:
 System::Threading::Tasks::Task ^ DisposeAsync();
public:
 override System::Threading::Tasks::ValueTask DisposeAsync();
public System.Threading.Tasks.Task DisposeAsync ();
public override System.Threading.Tasks.ValueTask DisposeAsync ();
member this.DisposeAsync : unit -> System.Threading.Tasks.Task
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Function DisposeAsync () As Task
Public Overrides Function DisposeAsync () As ValueTask

Returns

A Task that represents the asynchronous dispose.

Remarks

A connection cannot be restarted after it has stopped. To restart a connection a new instance should be created using the same options.

Applies to