IVsMonitorSelection Interface  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables VSPackages to receive notification of selection events and to get information about the current project hierarchy, item, element value, and command UI context.
public interface class IVsMonitorSelectionpublic interface class IVsMonitorSelection__interface IVsMonitorSelection[System.Runtime.InteropServices.Guid("55AB9450-F9C7-4305-94E8-BEF12065338D")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsMonitorSelection[System.Runtime.InteropServices.Guid("55AB9450-F9C7-4305-94E8-BEF12065338D")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsMonitorSelection[<System.Runtime.InteropServices.Guid("55AB9450-F9C7-4305-94E8-BEF12065338D")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsMonitorSelection = interface[<System.Runtime.InteropServices.Guid("55AB9450-F9C7-4305-94E8-BEF12065338D")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsMonitorSelection = interfacePublic Interface IVsMonitorSelection- Attributes
Notes to Callers
This interface is implemented by the Visual Studio Shell. You can get it from the SVsShellMonitorSelection service.
Methods
| AdviseSelectionEvents(IVsSelectionEvents, UInt32) | Registers a VSPackage for selection event notification. | 
| GetCmdUIContextCookie(Guid, UInt32) | Registers a command UI context  | 
| GetCurrentElementValue(UInt32, Object) | Returns the value for a particular element. | 
| GetCurrentSelection(IntPtr, UInt32, IVsMultiItemSelect, IntPtr) | Returns the current project hierarchy, project item, and selection container for the current selection. | 
| IsCmdUIContextActive(UInt32, Int32) | Determines whether a specific command UI context is active. | 
| SetCmdUIContext(UInt32, Int32) | Sets the state of the command UI context to active or inactive. | 
| UnadviseSelectionEvents(UInt32) | Cancels a registration for selection event notification. |