共用方式為


IVsLiteTreeList.GetItemCount(UInt32) Method

Definition

Returns the number of items in the current tree list.

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

Parameters

pCount
UInt32

[out] Pointer to the count of the tree list items.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLiteTreeList::GetItemCount(  
  [out] ULONG* pCount  
);  

Applies to