Udostępnij za pośrednictwem


DisposableObject Class

Definition

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

public ref class DisposableObject : IDisposable
[System.Runtime.InteropServices.ComVisible(true)]
public class DisposableObject : IDisposable
[<System.Runtime.InteropServices.ComVisible(true)>]
type DisposableObject = class
    interface IDisposable
Public Class DisposableObject
Implements 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