Op Englesch liesen

Deelen iwwer


AsyncDisposableObject Class

Definition

A class to be used to implement the lifetime management of another class.

C#
public class AsyncDisposableObject : IAsyncDisposable
Inheritance
AsyncDisposableObject
Derived
Implements

Constructors

Properties

DisposeToken

Gets a token that signals cancellation when this object is disposed.

IsDisposed

Gets a value indicating whether the object has been disposed once, protects against double disposal.

IsDisposing

Gets a value indicating whether the object is in the process of being disposed.

Methods

DisposeAsync()

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

DisposeCoreAsync()

Standard virtual overload for IAsyncDisposable pattern.

ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

Applies to

Produkt Versiounen
Visual Studio SDK 2022