Share via


IVsSimpleObjectList2.GetMultipleSourceItems Method

Definition

Returns the ItemID corresponding to source files for the given list item if more than one.

public:
 int GetMultipleSourceItems(System::UInt32 index, System::UInt32 grfGSI, System::UInt32 cItems, cli::array <Microsoft::VisualStudio::Shell::Interop::VSITEMSELECTION> ^ rgItemSel);
int GetMultipleSourceItems(unsigned int index, unsigned int grfGSI, unsigned int cItems, std::Array <Microsoft::VisualStudio::Shell::Interop::VSITEMSELECTION> const & rgItemSel);
public int GetMultipleSourceItems (uint index, uint grfGSI, uint cItems, Microsoft.VisualStudio.Shell.Interop.VSITEMSELECTION[] rgItemSel);
abstract member GetMultipleSourceItems : uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VSITEMSELECTION[] -> int
Public Function GetMultipleSourceItems (index As UInteger, grfGSI As UInteger, cItems As UInteger, rgItemSel As VSITEMSELECTION()) As Integer

Parameters

index
UInt32

[in] Specifies the index of the list item of interest.

grfGSI
UInt32

[in] Flag providing information about how the selected items should be returned. Values are taken from the __VSGSIFLAGS enumeration.

cItems
UInt32

[in] The number of items returned in rgItemSel.

rgItemSel
VSITEMSELECTION[]

[out] Array of VSITEMSELECTION structures that contain an IVsHierarchy pointer and item identifier for each selected item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsSimpleObjectList2::GetMultipleSourceItems(  
   [in]                   ULONG           Index,   
   [in]                   VSGSIFLAGS      grfGSI,   
   [in]                   ULONG           cItems,   
   [out, size_is(cItems)] VSITEMSELECTION rgItemSel[]  
);  

The environment calls GetMultipleSourceItems if an initial call to CountSourceItems returns a count greater than 1. Note that all ItemIds must belong to the same IVsHierarchy (returned through CountSourceItems.

This method applies to Class View only.

Applies to