Reference
OpcClient.AddVariableNode Method
Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name defined.
Reference
OpcClient.AddVariableNode 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 |
|---|---|
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable node to add, which shall be accessible by the name and nodeId defined. |
| AddVariableNode( | Adds a new variable node into the address space hierarchy using the specified type of variable 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 |
AddVariableNode(OpcVariableType, OpcName)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(OpcVariableType type, OpcName name)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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 |
AddVariableNode(OpcVariableType, OpcName, object)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
object value)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
value As Object) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable node can be accessed. |
value | Object | The initial value of the new variable node. |
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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, object)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
object value)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
value As Object) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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. |
value | Object | The initial value of the new variable node. |
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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, object)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
object value)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
value As Object) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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. |
value | Object | The initial value of the new variable node. |
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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcReferenceType referenceType)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceType As OpcReferenceType) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, object)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcReferenceType referenceType,
object value)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceType As OpcReferenceType,
value As Object) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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. |
value | Object | The initial value of the new variable node. |
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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcNodeId referenceTypeId)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceTypeId As OpcNodeId) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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 |
AddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, object)
Adds a new variable node into the address space hierarchy using the specified type of variable 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 AddVariableNode(
OpcVariableType type,
OpcName name,
OpcNodeId nodeId,
OpcNodeId parentNodeId,
OpcNodeId referenceTypeId,
object value)Public Function AddVariableNode(
type As OpcVariableType,
name As OpcName,
nodeId As OpcNodeId,
parentNodeId As OpcNodeId,
referenceTypeId As OpcNodeId,
value As Object) As OpcAddNodeResultParameters
| Name | Type | Description |
|---|---|---|
type | OpcVariableType | One of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
name | OpcName | The OpcName through that the new variable 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. |
value | Object | The initial value of the new variable node. |
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 |

