次の方法で共有


IVsMonitorSelection2 Interface

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

'宣言
<InterfaceTypeAttribute()> _
<GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")> _
Public Interface IVsMonitorSelection2
'使用
Dim instance As IVsMonitorSelection2
[InterfaceTypeAttribute()]
[GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")]
public interface IVsMonitorSelection2
[InterfaceTypeAttribute()]
[GuidAttribute(L"692E4F21-1EF2-41B1-9116-EED8DAA79E7F")]
public interface class IVsMonitorSelection2
public interface IVsMonitorSelection2

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.

See Also

Reference

IVsMonitorSelection2 Members

Microsoft.VisualStudio.Shell.Interop Namespace