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 override System.Threading.Tasks.ValueTask DisposeAsync();
public System.Threading.Tasks.Task DisposeAsync();
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
member this.DisposeAsync : unit -> System.Threading.Tasks.Task
Public Overrides Function DisposeAsync () As ValueTask
Public Function DisposeAsync () As Task
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.