IVsMonitorUserContext Interface
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
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 the SVsMonitorUserContext service to get a pointer to the IVsMonitorUserContext interface. Once you have the pointer to this interface, call CreateEmptyContext to create a new context bag and to receive a pointer to IVsUserContext. You can then call the AddAttribute 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 AddSubcontext to add attributes and keywords to the subcontext bag.
See illustrations of the implementation and/or calling of this interface in the samples Figures Language Service Sample, Figures Edit Sample, and Figures Project Sample.
Notes to Callers Call to create a new context or subcontext bag.