IDSRefConsumer.GetFirstChildNode Method

Retrieves the identifier of the first child node in the parent's vector of children for a specified parent node.

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

Syntax

'宣言
Function GetFirstChildNode ( _
    drnidCurr As IntPtr _
) As IntPtr
'使用
Dim instance As IDSRefConsumer
Dim drnidCurr As IntPtr
Dim returnValue As IntPtr

returnValue = instance.GetFirstChildNode(drnidCurr)
IntPtr GetFirstChildNode(
    IntPtr drnidCurr
)
IntPtr GetFirstChildNode(
    [InAttribute] IntPtr drnidCurr
)
function GetFirstChildNode(
    drnidCurr : IntPtr
) : IntPtr

Parameters

  • drnidCurr
    Type: System.IntPtr

    [in] DSREFNODEID of the parent node for which the first child node is to be retrieved.

Return Value

Type: System.IntPtr

Returns NOERROR if successful. Otherwise, it returns an unspecified failure code.

Examples

IDSRefConsumer* m_srpCurrentDSRef;
DSREFNODEID idParent;
DSREFNODEID idCur;
m_srpCurrentDSRef->GetFirstChildNode(idParent, &idCur);

Permissions

See Also

Reference

IDSRefConsumer Interface

IDSRefConsumer Members

Microsoft.VisualStudio.Data.Interop Namespace