ITcComObject:TcSetParentObjId method

The TcSetParentObjId method sets the parent object ID with the help of the given OTCID reference.

Syntax

HRESULT TcSetParentObjId( OTCID objId ) 

ITcComObject:TcSetParentObjId method 1: 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.

Parameter

Name

Type

Description

objId

OTCID

Reference to OTCID value.