Compartir a través de


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

Syntax

'Declaración
Public Enumeration _OLECCONTEXT
public enum _OLECCONTEXT

Members

Member name Description
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.

Remarks

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 OnComponentEnterState or 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.

Note

FInState is used to query the state context of a component manager at its root.

See Also

Reference

Microsoft.VisualStudio.OLE.Interop Namespace