Freigeben über


IVsSimpleObjectList2.GetMultipleSourceItems Method

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

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

Syntax

'Declaration
Function GetMultipleSourceItems ( _
    index As UInteger, _
    grfGSI As UInteger, _
    cItems As UInteger, _
    <OutAttribute> rgItemSel As VSITEMSELECTION() _
) As Integer
int GetMultipleSourceItems(
    uint index,
    uint grfGSI,
    uint cItems,
    VSITEMSELECTION[] rgItemSel
)
int GetMultipleSourceItems(
    [InAttribute] unsigned int index, 
    [InAttribute] unsigned int grfGSI, 
    [InAttribute] unsigned int cItems, 
    [OutAttribute] array<VSITEMSELECTION>^ rgItemSel
)
abstract GetMultipleSourceItems : 
        index:uint32 * 
        grfGSI:uint32 * 
        cItems:uint32 * 
        rgItemSel:VSITEMSELECTION[] byref -> int
function GetMultipleSourceItems(
    index : uint, 
    grfGSI : uint, 
    cItems : uint, 
    rgItemSel : VSITEMSELECTION[]
) : int

Parameters

  • index
    Type: UInt32

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

  • grfGSI
    Type: UInt32

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

  • cItems
    Type: UInt32

    [in] The number of items returned in rgItemSel.

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsSimpleObjectList2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace