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)


Function GetDescendantItemCount ( _
    AbsIndex As UInteger, _
    <OutAttribute> ByRef pCount As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsLiteTree
Dim AbsIndex As UInteger
Dim pCount As UInteger
Dim returnValue As Integer

returnValue = instance.GetDescendantItemCount(AbsIndex, _
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


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


COM Signature


From vsshell.idl:

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

.NET Framework Security

See Also


IVsLiteTree Interface

IVsLiteTree Members

Microsoft.VisualStudio.Shell.Interop Namespace