Share via


IDSRefProvider.CreateFirstChildNode Method

Adds an initial child node to a parent node.

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

Syntax

'Declaration
Function CreateFirstChildNode ( _
    drnidCurr As IntPtr _
) As IntPtr
IntPtr CreateFirstChildNode(
    IntPtr drnidCurr
)
IntPtr CreateFirstChildNode(
    IntPtr drnidCurr
)
abstract CreateFirstChildNode : 
        drnidCurr:IntPtr -> IntPtr
function CreateFirstChildNode(
    drnidCurr : IntPtr
) : IntPtr

Parameters

  • drnidCurr
    Type: System.IntPtr

    The DSREFNODEID of the parent node for which the first child node is to be created.

Return Value

Type: System.IntPtr
NOERROR if successful; otherwise, an unspecified failure code.

Remarks

During the creation of the database node, DSREFNODEID_ROOT ( = 0) should be passed as the first parameter.

Examples

IDSRefProvider *pIDSRefProvider;
DSREFNODEID &rdrnid;
DSREFNODEID drnid;
pIDSRefProvider->CreateFirstChildNode(rdrnid, &drnid);

.NET Framework Security

See Also

Reference

IDSRefProvider Interface

Microsoft.VisualStudio.Data.Services.SupportEntities.Interop Namespace

Other Resources

Data Designer Extensibility (DDEX) SDK