.NET Framework Class Library
Database.AddToParent Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Database Class > Database Methods >

.NET Framework Class Library
Database.AddToParent Method

Adds a child relationship between a parent document and a child document. The child index value is meaningful for the ordering in the bill of materials of the parent, and may be omitted ( in which case a 0 value will be used as default )

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub AddToParent ( _

docUid As String, _
parentUid As String, _
Optional positionNumber As Integer = 0 _
)

C#

public void AddToParent(

string docUid,
string parentUid,
int positionNumber = 0
)

Visual C++

public:

void AddToParent(
String^ docUid,
String^ parentUid,
int positionNumber = 0
)

JavaScript

function addToParent(docUid, parentUid, positionNumber);

Parameters

docUid

Type: System.String
unique id of the new child document

parentUid

Type: System.String
unique id of the document of which the child is added to.

positionNumber (Optional)

Type: System.Int32
Optional. The position representing the order this document assumes in the BOM, it does not affect the tree order

Remarks

See Also

Database Class

Database Members

MwPDMApi Namespace