Click or drag to resize

IDisposer Methods

The IDisposer type exposes the following members.

Methods
  NameDescription
Public methodAddInstanceForAsyncDisposal
Adds an object to the disposer, where that object implements IAsyncDisposable. When the disposer is disposed, so will the object be. You should most likely implement IDisposable as well, and call AddInstanceForDisposal(IDisposable) instead of this method.
Public methodAddInstanceForDisposal
Adds an object to the disposer. When the disposer is disposed, so will the object be.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodDisposeAsync (Inherited from IAsyncDisposable.)
Top
See Also