共用方式為


EventHubConnection.DisposeAsync Method

Definition

Performs the task needed to clean up resources used by the EventHubConnection, including ensuring that the connection itself has been closed.

public virtual System.Threading.Tasks.ValueTask DisposeAsync ();
abstract member DisposeAsync : unit -> System.Threading.Tasks.ValueTask
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Overridable Function DisposeAsync () As ValueTask

Returns

A task to be resolved on when the operation has completed.

Implements

Applies to