DisposableWrapper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Constructors
DisposableWrapper(IDisposable) | |
DisposableWrapper(IDisposable, EventHandler) |
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) |