Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables VSPackages to receive notification of selection events and to get information about the current project hierarchy, item, element value, and command UI context.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")> _
<InterfaceTypeAttribute()> _
Public Interface IVsMonitorSelection
[GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")]
[InterfaceTypeAttribute()]
public interface IVsMonitorSelection
[GuidAttribute(L"55AB9450-F9C7-4305-94E8-BEF12065338D")]
[InterfaceTypeAttribute()]
public interface class IVsMonitorSelection
[<GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")>]
[<InterfaceTypeAttribute()>]
type IVsMonitorSelection = interface end
public interface IVsMonitorSelection
The IVsMonitorSelection type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
AdviseSelectionEvents | Registers a VSPackage for selection event notification. |
![]() |
GetCmdUIContextCookie | Registers a command UI context GUID and returns cookie value. |
![]() |
GetCurrentElementValue | Returns the value for a particular element. |
![]() |
GetCurrentSelection | Returns the current project hierarchy, project item, and selection container for the current selection. |
![]() |
IsCmdUIContextActive | Determines whether a specific command UI context is active. |
![]() |
SetCmdUIContext | Sets the state of the command UI context to active or inactive. |
![]() |
UnadviseSelectionEvents | Cancels a registration for selection event notification. |
Top
Remarks
Notes to Callers
This interface is implemented by the Visual Studio Shell. You can get it from the ISVsShellMonitorSelection service.