DisposableObject DisposableObject DisposableObject DisposableObject Class

Definition

Microsoft internal use only.

public ref class DisposableObject : IDisposable
[System.Runtime.InteropServices.ComVisible(true)]
public class DisposableObject : IDisposable
type DisposableObject = class
    interface IDisposable
Public Class DisposableObject
Implements IDisposable
Inheritance
DisposableObjectDisposableObjectDisposableObjectDisposableObject
Derived
Attributes
Implements

Constructors

DisposableObject() DisposableObject() DisposableObject() DisposableObject()

Microsoft internal use only.

Properties

IsDisposed IsDisposed IsDisposed IsDisposed

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

Methods

Dispose() Dispose() Dispose() Dispose()

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

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.

DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources.

DisposeNativeResources() DisposeNativeResources() DisposeNativeResources() DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources.

Finalize() Finalize() Finalize() Finalize()

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

ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

Events

Disposing Disposing Disposing Disposing

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

Applies to