Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Provides information about an empty context (when nothing is selected) and supports implementation of custom selection identifiers. Extends, but does not inherit from, IVsMonitorSelection.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
<GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")> _
<InterfaceTypeAttribute()> _
Public Interface IVsMonitorSelection2
[GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")]
[InterfaceTypeAttribute()]
public interface IVsMonitorSelection2
[GuidAttribute(L"692E4F21-1EF2-41B1-9116-EED8DAA79E7F")]
[InterfaceTypeAttribute()]
public interface class IVsMonitorSelection2
[<GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")>]
[<InterfaceTypeAttribute()>]
type IVsMonitorSelection2 = interface end
public interface IVsMonitorSelection2
The IVsMonitorSelection2 type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
![]() |
GetElementID | Retrieves the element identifier for a VsPackage-defined Element of Selection. |
![]() |
GetEmptySelectionContext | Retrieves the empty selection context. |
Top
Remarks
In order to provide a custom selection identifier (VSConstants.VSSELELEMID), you need to define a GUID as a subkey in the registry under the SelectionElements section of the Visual Studio section.
.gif)