HierarchyManipulationStateScope HierarchyManipulationStateScope HierarchyManipulationStateScope HierarchyManipulationStateScope HierarchyManipulationStateScope Class

Definition

Facilitates deterministic restoration of an IVsHierarchyManipulationStateContext.

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

Examples

// Set up a context where changes to the hierarchy are considered "system" changes and not "user" changes.  
using (new HierarchyManipulationStateScope (__VSHIERARCHYMANIPULATIONSTATE.HMS_System))  
{  
    // Manipulate the hierarchy  
}  

Constructors

HierarchyManipulationStateScope(UInt32) HierarchyManipulationStateScope(UInt32) HierarchyManipulationStateScope(UInt32) HierarchyManipulationStateScope(UInt32) HierarchyManipulationStateScope(UInt32)

Initializes a new instance of the HierarchyManipulationStateScope class.

Methods

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

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

(Inherited from DisposableObject)
Dispose(Boolean) 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.

(Inherited from DisposableObject)
DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources()

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

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

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

(Inherited from DisposableObject)
ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

(Inherited from DisposableObject)

Events

Disposing Disposing Disposing Disposing Disposing

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

(Inherited from DisposableObject)

Properties

IsDisposed IsDisposed IsDisposed IsDisposed IsDisposed

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

(Inherited from DisposableObject)

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to