DisposableObject Class

Definition

This type is forwarded from MS.VS.Shell.xx.dll

C++
public ref class DisposableObject : IDisposable
Inheritance
DisposableObject
Derived
Attributes
Implements

Constructors

DisposableObject()

Microsoft internal use only.

Properties

IsDisposed

Returns whether the object has been disposed once, protects against double disposal

Methods

Dispose()

Disposes the current object then suppresses further finalization.

Dispose(Boolean)

Standard virtual overload for IDisposable pattern

DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources

DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

Finalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

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

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022