Reference
OpcClient.AddObjectNode Method
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name defined.
Reference
OpcClient.AddObjectNode Method
- Type
- OpcClient
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcClient Members
- Also in
- Opc.UaFx.Client
| Overload | Description |
|---|---|
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
| AddObjectNode( | Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The add node service is currently not supported, especially using the parameters specified. |
| Object | The object has been disposed of. |
| OpcException | The service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and Bad |
AddObjectNode(OpcObjectType, OpcName)
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name defined. The according OpcNodeId to identify and access the new node is determined by the service. The new node will be a child of the ObjectsFolder node using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(OpcObjectType type, OpcName name)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Null. |
| Argument | The name is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, params OpcAddInstanceNode[])
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name defined. The according OpcNodeId to identify and access the new node is determined by the service. The new node will be a child of the ObjectsFolder node using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
params OpcAddInstanceNode[] children)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
ParamArray children As OpcAddInstanceNode()) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
children | params Opc | The initial child nodes of the node to add. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Null. |
| Argument | The name is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId)
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the ObjectsFolder node using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Null. |
| Argument | The name or nodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, params OpcAddInstanceNode[])
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the ObjectsFolder node using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
params OpcAddInstanceNode[] children)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
ParamArray children As OpcAddInstanceNode()) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
children | params Opc | The initial child nodes of the node to add. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Null. |
| Argument | The name or nodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId)
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using HasComponent as the type of reference. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId is equals Null or name is equals Null. |
| Argument | The name, nodeId or parentNodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode[])
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using HasComponent as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
params OpcAddInstanceNode[] children)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
ParamArray children As OpcAddInstanceNode()) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using HasComponent as the type of reference. |
children | params Opc | The initial child nodes of the node to add. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId is equals Null or name is equals Null. |
| Argument | The name, nodeId or parentNodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using the referenceType specified as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcReferenceType referenceType)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceType As OpcReferenceType) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using HasComponent as the type of reference. |
referenceType | OpcReferenceType | One of the members defined by the OpcReferenceType enumeration to use to setup the reference between the new node and the existing parent node identified by parentNodeId. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId is equals Null or name is equals Null. |
| Argument | The name, nodeId or parentNodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode[])
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using the referenceType specified as the type of reference.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcReferenceType referenceType,
params OpcAddInstanceNode[] children)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceType As OpcReferenceType,
ParamArray children As OpcAddInstanceNode()) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using HasComponent as the type of reference. |
referenceType | OpcReferenceType | One of the members defined by the OpcReferenceType enumeration to use to setup the reference between the new node and the existing parent node identified by parentNodeId. |
children | params Opc | The initial child nodes of the node to add. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId is equals Null or name is equals Null. |
| Argument | The name, nodeId or parentNodeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using the type of reference identified by the referenceTypeId specified.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcNodeId referenceTypeId)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceTypeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId. |
referenceTypeId | OpcNodeId | The OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId or referenceTypeId is equals Null or name is equals Null. |
| Argument | The name, nodeId, parentNodeId or referenceTypeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode[])
Adds a new object node into the address space hierarchy using the specified type of object node to add, which shall be accessible by the name and nodeId defined. The new node will be a child of the node identified by parentNodeId using the type of reference identified by the referenceTypeId specified.
public OpcAddNodeResult AddObjectNode(
OpcObjectType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcNodeId referenceTypeId,
params OpcAddInstanceNode[] children)Public Function AddObjectNode(
type As OpcObjectType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceTypeId As OpcNodeId,
ParamArray children As OpcAddInstanceNode()) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcObjectType | One of the members defined by the OpcObjectType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new object node can be accessed. |
nodeId | OpcNodeId | The OpcNodeId through that the new node can be identified and accessed. In case there Null is specified the server will determine the according OpcNodeId by its own. |
parentNodeId | OpcNodeId | The OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId. |
referenceTypeId | OpcNodeId | The OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId. |
children | params Opc | The initial child nodes of the node to add. |
Returns
An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the the call to the add nodes service; together with information about the outcome of the processed service invocation.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The parentNodeId or referenceTypeId is equals Null or name is equals Null. |
| Argument | The name, nodeId, parentNodeId or referenceTypeId is a null reference ( |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |

