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
'Declaración
Function GetSelectionInfo ( _
<OutAttribute> ByRef pcItems As UInteger, _
<OutAttribute> ByRef pfSingleHierarchy As Integer _
) As Integer
'Uso
Dim instance As IVsMultiItemSelect
Dim pcItems As UInteger
Dim pfSingleHierarchy As Integer
Dim returnValue As Integer
returnValue = instance.GetSelectionInfo(pcItems, _
pfSingleHierarchy)
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: 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.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.