Udostępnij za pośrednictwem


IVsLiteTree.GetDescendantItemCount(UInt32, UInt32) Method

Definition

Returns the number of descendants of a given node.

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

Parameters

AbsIndex
UInt32

[in] Index of node to check. Use -1 on first call.

pCount
UInt32

[out] Pointer to the number of descendants; 0 if not expanded.

Returns

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

Remarks

COM Signature

[C++]

From vsshell.idl:

HRESULT IVsLiteTree::GetDescendantItemCount(  
   [in] ULONG AbsIndex,   
   [out] ULONG *pCount  
);  

Applies to