Method ITcComObject:TcSetParentObjId

The method TcSetParentObjId sets Parent Object ID using given OTCID reference.

Syntax


HRESULT TcSetParentObjId( OTCID objId )

Parameter

objId: (type: OTCID) reference to OTCID value.

Return value

If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.

At present, the return value is ignored by the TwinCAT tasks.

Description

The method TcSetParentObjId sets Parent Object ID using given OTCID reference.