IVsProvideUserContext Interface
Visual Studio 2015
Provides context for an item in a selection container.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
| Name | Description | |
|---|---|---|
![]() | GetUserContext(IVsUserContext) | Informs the environment where the selection's context is located. |
If you are pushing selection to the Properties window using the IVsTrackSelectionEx interface and you want to provide context on the selected item, then the selected item needs to implement the IVsProvideUserContext interface. For example, use IVsProvideUserContext to provide context for items in a task list or a button on a designer.
See illustrations of the implementation and/or calling of this interface in the sample .f08872bd-fd9c-4e36-8cf2-a2a2622ef986
Notes to Implementers:
Implement this interface on a selection container to provide context.
Show:
