IVsLiteTree::GetDescendantItemCount Method (UInt32, UInt32)

 

Returns the number of descendants of a given node.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetDescendantItemCount(
	unsigned int AbsIndex,
	[OutAttribute] unsigned int% pCount
)

Parameters

AbsIndex
Type: System::UInt32

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

pCount
Type: System::UInt32

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

Return Value

Type: System::Int32

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

[C++]

From vsshell.idl:

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