Compartir a través de


DisposableWrapper Class

Definition

A disposable that disposes wrapped IDisposable

public ref class DisposableWrapper : Microsoft::VisualStudio::PlatformUI::DisposableObject
[Windows::Foundation::Metadata::WebHostHidden]
class DisposableWrapper : Microsoft::VisualStudio::PlatformUI::DisposableObject
public class DisposableWrapper : Microsoft.VisualStudio.PlatformUI.DisposableObject
type DisposableWrapper = class
    inherit DisposableObject
Public Class DisposableWrapper
Inherits DisposableObject
Inheritance
DisposableWrapper

Constructors

DisposableWrapper(IDisposable, EventHandler)
DisposableWrapper(IDisposable)

Properties

IsDisposed

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

(Inherited from DisposableObject)

Methods

Dispose()

Disposes the current object then suppresses further finalization.

(Inherited from DisposableObject)
Dispose(Boolean)

Standard virtual overload for IDisposable pattern

(Inherited from DisposableObject)
DisposeManagedResources()
DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed

(Inherited from DisposableObject)

Events

Disposing

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

(Inherited from DisposableObject)

Applies to