Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Studio SDK
Reference
Interfaces

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio SDK
IVsMonitorSelection Interface

Enables VSPackages to receive notification of selection events and to retrieve 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)

Visual Basic (Declaration)
<InterfaceTypeAttribute(1)> _
<GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")> _
Public Interface IVsMonitorSelection
Visual Basic (Usage)
Dim instance As IVsMonitorSelection
C#
[InterfaceTypeAttribute(1)] 
[GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")] 
public interface IVsMonitorSelection
C++
[InterfaceTypeAttribute(1)] 
[GuidAttribute(L"55AB9450-F9C7-4305-94E8-BEF12065338D")] 
public interface class IVsMonitorSelection
J#
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D") */ 
public interface IVsMonitorSelection
JScript
InterfaceTypeAttribute(1) 
GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D") 
public interface IVsMonitorSelection

See illustrations of the implementation and/or calling of this interface in the sample Basic Project Sample.

Notes to Callers VSPackages call the methods of IVsMonitorSelection through the SVsMonitorSelection service to register for selection event notification, to cancel the registration, to retrieve current selections and element values, and to manage command UI context information.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker