Share via


IDSRefProvider.CreateFirstChildNode Method

Adds an initial child node to a parent node.

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

Syntax

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

Parameters

  • drnidCurr
    Type: System.IntPtr

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

Return Value

Type: System.IntPtr
Returns NOERROR if successful. Otherwise, it returns 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.Interop Namespace

Other Resources

Data Designer Extensibility (DDEX) SDK