Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a new context or subcontext bag.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<GuidAttribute("9C074FDB-3D7D-4512-9604-72B3B0A5F609")> _
<InterfaceTypeAttribute()> _
Public Interface IVsMonitorUserContext
[GuidAttribute("9C074FDB-3D7D-4512-9604-72B3B0A5F609")]
[InterfaceTypeAttribute()]
public interface IVsMonitorUserContext
[GuidAttribute(L"9C074FDB-3D7D-4512-9604-72B3B0A5F609")]
[InterfaceTypeAttribute()]
public interface class IVsMonitorUserContext
[<GuidAttribute("9C074FDB-3D7D-4512-9604-72B3B0A5F609")>]
[<InterfaceTypeAttribute()>]
type IVsMonitorUserContext = interface end
public interface IVsMonitorUserContext
The IVsMonitorUserContext type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
![]() |
AdviseContextItemEvents | Method information is not provided. Do not use this method. |
![]() |
CreateEmptyContext | Creates a new context or subcontext bag on the context provider. |
![]() |
FindTargetItems | Method information is not provided. Do not use this method. |
![]() |
get_ApplicationContext | Method information is not provided. Do not use this method. |
![]() |
GetContextItems | Method information is not provided. Do not use this method. |
![]() |
GetF1Kwd | Method information is not provided. Do not use this method. |
![]() |
GetNextCtxBag | Method information is not provided. Do not use this method. |
![]() |
GetNextCtxBagAttr | Method information is not provided. Do not use this method. |
![]() |
GetPrevAttrCache | Method information is not provided. Do not use this method. |
![]() |
IsF1Lookup | Method information is not provided. Do not use this method. |
![]() |
IsIdleAvailable | Method information is not provided. Do not use this method. |
![]() |
put_ApplicationContext | Method information is not provided. Do not use this method. |
![]() |
RegisterItemProvider | Method information is not provided. Do not use this method. |
![]() |
ResetNextCtxBagAttr | Method information is not provided. Do not use this method. |
![]() |
SetSite | Method information is not provided. Do not use this method. |
![]() |
SetTopicTypeFilter | Method information is not provided. Do not use this method. |
![]() |
UnadviseContextItemEvent | Method information is not provided. Do not use this method. |
![]() |
UnregisterItemProvider | Method information is not provided. Do not use this method. |
Top
Remarks
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.
Notes to Callers
Call to create a new context or subcontext bag.
.gif)