This topic has not yet been rated - Rate this topic

IVsProvideUserContext Interface

Provides context for an item in a selection container.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

[GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")] 
[InterfaceTypeAttribute(1)] 
public interface IVsProvideUserContext
/** @attribute GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsProvideUserContext
GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E") 
InterfaceTypeAttribute(1) 
public interface IVsProvideUserContext

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 Figures Edit Sample.

Notes to Implementers Implement this interface on a selection container to provide context.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ