Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: System.UInt32
[in] Specifies the index of the list item of interest.
- grfGSI
Type: System.UInt32
[in] Flag providing information about how the selected items should be returned. Values are taken from the __VSGSIFLAGS enumeration.
- cItems
Type: System.UInt32
[in] The number of items returned in rgItemSel.
- rgItemSel
Type: array<Microsoft.VisualStudio.Shell.Interop.VSITEMSELECTION[]
[out] Array of VSITEMSELECTION structures that contain an IVsHierarchy pointer and item identifier for each selected item.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT IVsObjectList2::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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.