Поделиться через


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

Remarks

COM Signature

[C++]

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsLiteTree Interface

Microsoft.VisualStudio.Shell.Interop Namespace