_OLECCONTEXT Enumeration

 

Specifies the state context that is affected by an OnComponentEnterState or OnComponentExitState change.

Namespace:   Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

public enum _OLECCONTEXT

Member nameDescription
oleccontextAll

Indicates that all state contexts in the state context tree are affected.

oleccontextMine

Indicates that the components in the state context of a component manager are affected.

oleccontextOthers

Indicates that all state contexts outside of the state context of a component manager are affected.

M:Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.FCreateSubComponentManager enables the creation of a hierarchical tree of component managers. This tree is used to maintain multiple contexts with regard to the olecstate. These contexts are referred to as state contexts.

Each component manager in the tree defines a state context. The components that are registered with a particular component manager or any of its descendents are part of the state context of that component manager. Calls to M:Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.OnComponentEnterState or M:Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.FOnComponentExitState can be used to affect all components, only the components that are in the state context of a component manager, or only those components that are outside of the state context of a component manager.

System_CAPS_noteNote

M:Microsoft.VisualStudio.OLE.Interop.IOleComponentManager.FInState is used to query the state context of a component manager at its root.

Return to top
Show: