IVsMultiItemSelect::GetSelectionInfo Method (UInt32, Int32)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetSelectionInfo( [OutAttribute] unsigned int% pcItems, [OutAttribute] int% pfSingleHierarchy )
Parameters
- pcItems
-
Type:
System::UInt32
[out] Pointer to a count of the number of selected items.
- pfSingleHierarchy
-
Type:
System::Int32
[out] Pointer to a flag that is set to true if the selected items are within a single hierarchy and false if the selected items are across multiple hierarchies.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
C++ From vsshell.idl: HRESULT IVsMultiItemSelect::GetSelectionInfo( [out] ULONG *pcItems, [out] BOOL *pfSingleHierarchy );
Show: