다음을 통해 공유


IVsMultiItemSelect.GetSelectionInfo(UInt32, Int32) Method

Definition

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.

public:
 int GetSelectionInfo([Runtime::InteropServices::Out] System::UInt32 % pcItems, [Runtime::InteropServices::Out] int % pfSingleHierarchy);
int GetSelectionInfo([Runtime::InteropServices::Out] unsigned int & pcItems, [Runtime::InteropServices::Out] int & pfSingleHierarchy);
public int GetSelectionInfo (out uint pcItems, out int pfSingleHierarchy);
abstract member GetSelectionInfo : uint32 * int -> int
Public Function GetSelectionInfo (ByRef pcItems As UInteger, ByRef pfSingleHierarchy As Integer) As Integer

Parameters

pcItems
UInt32

[out] Pointer to a count of the number of selected items.

pfSingleHierarchy
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.

Returns

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  
);  

Applies to