|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
[InterfaceTypeAttribute(1)] [GuidAttribute("9C074FDB-3D7D-4512-9604-72B3B0A5F609")] public interface IVsMonitorUserContext
/** @attribute InterfaceTypeAttribute(1) */ /** @attribute GuidAttribute("9C074FDB-3D7D-4512-9604-72B3B0A5F609") */ public interface IVsMonitorUserContext
The majority of methods provided by the IVsMonitorUserContext interface are only used internally by the environment. However, you can use this interface to create a context or subcontext bag. To create a new context bag, call QueryService on theservice to get a pointer to the IVsMonitorUserContext interface. Once you have the pointer to this interface, call to create a new context bag and to receive a pointer to . You can then call the method to add attributes, lookup keywords, or F1 keywords to the context bag. Use this same procedure to create a subcontext bag, and then call to add attributes and keywords to the subcontext bag.
See illustrations of the implementation and/or calling of this interface in the samplesNotes to Callers Call to create a new context or subcontext bag. , , and .