HierarchyManipulationStateScope Class

Definition

Simple class to facilitate 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
HierarchyManipulationStateScope

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  
}  

// 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)

Creates a new HierarchyManipulationStateScope.

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()

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

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