IVsLiteTree.GetDescendantItemCount Method
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)
Syntax
'Declaration
Function GetDescendantItemCount ( _
AbsIndex As UInteger, _
<OutAttribute> ByRef pCount As UInteger _
) As Integer
int GetDescendantItemCount(
uint AbsIndex,
out uint pCount
)
int GetDescendantItemCount(
[InAttribute] unsigned int AbsIndex,
[OutAttribute] unsigned int% pCount
)
abstract GetDescendantItemCount :
AbsIndex:uint32 *
pCount:uint32 byref -> int
function GetDescendantItemCount(
AbsIndex : uint,
pCount : uint
) : int
Parameters
AbsIndex
Type: UInt32[in] Index of node to check. Use -1 on first call.
pCount
Type: UInt32%[out] Pointer to the number of descendants; 0 if not expanded.
Return Value
Type: Int32
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
);
.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.