Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsObjectList2.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)

int GetMultipleSourceItems (
	[InAttribute] uint index,
	[InAttribute] uint grfGSI,
	[InAttribute] uint cItems,
	[OutAttribute] VSITEMSELECTION[] rgItemSel
)
int GetMultipleSourceItems (
	/** @attribute InAttribute() */ UInt32 index, 
	/** @attribute InAttribute() */ UInt32 grfGSI, 
	/** @attribute InAttribute() */ UInt32 cItems, 
	/** @attribute OutAttribute() */ VSITEMSELECTION[] rgItemSel
)
function GetMultipleSourceItems (
	index : uint, 
	grfGSI : uint, 
	cItems : uint, 
	rgItemSel : VSITEMSELECTION[]
) : int

Parameters

index

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

grfGSI

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

cItems

[in] The number of items returned in rgItemSel.

rgItemSel

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

Return Value

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

COM Signature

From vsshell80.idl:

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.

Community Additions

ADD
Show:
© 2015 Microsoft