다음을 통해 공유


IVsMultiItemSelect Interface

Provides the environment with access to multiple selections.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("96973FC6-C2E4-4CB9-8BAF-7F7CD6DBC604")> _
Public Interface IVsMultiItemSelect
[InterfaceTypeAttribute()]
[GuidAttribute("96973FC6-C2E4-4CB9-8BAF-7F7CD6DBC604")]
public interface IVsMultiItemSelect
[InterfaceTypeAttribute()]
[GuidAttribute(L"96973FC6-C2E4-4CB9-8BAF-7F7CD6DBC604")]
public interface class IVsMultiItemSelect
[<InterfaceTypeAttribute()>]
[<GuidAttribute("96973FC6-C2E4-4CB9-8BAF-7F7CD6DBC604")>]
type IVsMultiItemSelect =  interface end
public interface IVsMultiItemSelect

The IVsMultiItemSelect type exposes the following members.

Methods

  Name Description
Public method GetSelectedItems Returns an IVsHierarchy interface pointer and item identifier for selected items.
Public method GetSelectionInfo Returns a flag that indicates whether or not the selected items belong to one or more hierarchies and a count of the number of selected items.

Top

Remarks

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

Notes to Implementers

VSPackages implement IVsMultiItemSelect if they include a hierarchy as part of their project or support multiple selections in their active windows.

Notes to Callers

Call the methods of IVsMultiItemSelect to retrieve project hierarchy and item information when multiple objects make up the current selection. IVsMultiItemSelect can be used to add items to a hierarchy and to update the Solution Explorer.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace