Compartir a través de


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)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")> _
Public Interface IVsProvideUserContext
[InterfaceTypeAttribute()]
[GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")]
public interface IVsProvideUserContext
[InterfaceTypeAttribute()]
[GuidAttribute(L"997D7904-D948-4C8B-8BAB-0BDA1E212F6E")]
public interface class IVsProvideUserContext
[<InterfaceTypeAttribute()>]
[<GuidAttribute("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")>]
type IVsProvideUserContext =  interface end
public interface IVsProvideUserContext

The IVsProvideUserContext type exposes the following members.

Methods

  Name Description
Public method GetUserContext Informs the environment where the selection's context is located.

Top

Remarks

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.

Notes to Implementers

Implement this interface on a selection container to provide context.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace