共用方式為


IAsyncDisposable.DisposeAsync Method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Function DisposeAsync As Task
Task DisposeAsync()
Task^ DisposeAsync()
abstract DisposeAsync : unit -> Task
function DisposeAsync() : Task

Return Value

Type: System.Threading.Tasks.Task
Returns Task.

.NET Framework Security

See Also

Reference

IAsyncDisposable Interface

Microsoft.VisualStudio.Threading Namespace