Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Microsoft internal use only.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.PlatformUI.DisposableObject
Microsoft.VisualStudio.PlatformUI.EnvironmentRenderCapabilities
Microsoft.VisualStudio.PlatformUI.HwndWrapper
Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent
Microsoft.VisualStudio.Shell.HierarchyManipulationStateScope
Microsoft.VisualStudio.Shell.HierarchyTreeFilterProvider.HierarchyTreeFilter
Microsoft.VisualStudio.Shell.NewDocumentStateScope
Microsoft.VisualStudio.Shell.SingleTaskIdleManager
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
<ComVisibleAttribute(True)> _
Public Class DisposableObject _
Implements IDisposable
[ComVisibleAttribute(true)]
public class DisposableObject : IDisposable
[ComVisibleAttribute(true)]
public ref class DisposableObject : IDisposable
[<ComVisibleAttribute(true)>]
type DisposableObject =
class
interface IDisposable
end
public class DisposableObject implements IDisposable
The DisposableObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
DisposableObject | Microsoft internal use only. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
IsDisposed | Returns whether the object has been disposed once, which protects against double disposal. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() |
Dispose(Boolean) | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. 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. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides Object.Finalize.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ThrowIfDisposed | Throws an ObjectDisposedException if this object has been disposed. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
![]() |
Disposing | Raised when the event is being disposed, that is, while it is still accessible. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.