IVsMultiItemSelect.GetSelectionInfo Method
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.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSelectionInfo ( _
<OutAttribute> ByRef pcItems As UInteger, _
<OutAttribute> ByRef pfSingleHierarchy As Integer _
) As Integer
int GetSelectionInfo(
out uint pcItems,
out int pfSingleHierarchy
)
int GetSelectionInfo(
[OutAttribute] unsigned int% pcItems,
[OutAttribute] int% pfSingleHierarchy
)
abstract GetSelectionInfo :
pcItems:uint32 byref *
pfSingleHierarchy:int byref -> int
function GetSelectionInfo(
pcItems : uint,
pfSingleHierarchy : int
) : int
Parameters
pcItems
Type: UInt32%[out] Pointer to a count of the number of selected items.
pfSingleHierarchy
Type: 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: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMultiItemSelect::GetSelectionInfo(
[out] ULONG *pcItems,
[out] BOOL *pfSingleHierarchy
);
.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.