HttpConnection.DisposeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.