Skip to content

Reference

OpcAddVariableNode Members

Defines an abstract base class for a single command of the IOpcAddNodesService used to add one variable node (nodes of the category Variable).

Reference

OpcAddVariableNode Members ​

Type
OpcAddVariableNode
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from OpcAddInstanceNode, OpcAddNode, OpcNodeServiceCommand, OpcServiceCommand.

Constructors ​

OpcAddVariableNode ​

protected · 20 overloads

OverloadDescription
OpcAddVariableNode(OpcVariableType, OpcName)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name defined.
OpcAddVariableNode(OpcVariableType, OpcName, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified type of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name defined.
OpcAddVariableNode(OpcNodeId, OpcName, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.
OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, object)protectedInitializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId of variable node to add, which shall be accessible by the name and nodeId defined.

OpcAddVariableNode(OpcVariableType, OpcName) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(OpcVariableType type, OpcName name)
vbnet
Protected Sub New(type As OpcVariableType, name As OpcName)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Null.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(OpcVariableType type, OpcName name, object value)
vbnet
Protected Sub New(type As OpcVariableType, name As OpcName, value As Object)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Null.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId)
vbnet
Protected Sub New(type As OpcVariableType, name As OpcName, nodeId As OpcNodeId)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Null.
ArgumentNullExceptionThe name or nodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    object value)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Null.
ArgumentNullExceptionThe name or nodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    object value)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
referenceTypeOpcReferenceTypeOne 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.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    object value)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    value As Object)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
referenceTypeOpcReferenceTypeOne 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.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId or referenceTypeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId, parentNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class 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.

csharp
protected OpcAddVariableNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    object value)
vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeOpcVariableTypeOne of the members defined by the OpcVariableType enumeration which identifies the predefined underlying type definition the new node will represent an instance of.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe parentNodeId or referenceTypeId is equals Null or name is equals Null.
ArgumentNullExceptionThe name, nodeId, parentNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(OpcNodeId typeDefinitionId, OpcName name)
vbnet
Protected Sub New(typeDefinitionId As OpcNodeId, name As OpcName)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId or name is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    object value)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    value As Object)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId or name is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name or nodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    object value)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name or nodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    object value)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
referenceTypeOpcReferenceTypeOne 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.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    object value)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    value As Object)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using HasComponent as the type of reference.
referenceTypeOpcReferenceTypeOne 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.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId or parentNodeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId or referenceTypeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId, parentNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

OpcAddVariableNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcAddVariableNode class using the specified typeDefinitionId 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.

csharp
protected OpcAddVariableNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    object value)
vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId which identifies the type of object to use for the new node.
nameOpcNameThe OpcName through that the new variable node can be accessed.
nodeIdOpcNodeIdThe 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.
parentNodeIdOpcNodeIdThe OpcNodeId of the parent node to reference using the type of reference identified by referenceTypeId.
referenceTypeIdOpcNodeIdThe OpcNodeId which identifies the type of reference to use for the new node and the existing parent node identified by parentNodeId.
valueObjectThe initial value of the new variable node.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null or parentNodeId or referenceTypeId is equals Null or name is equals Null.
ArgumentNullExceptionThe typeDefinitionId, name, nodeId, parentNodeId or referenceTypeId is a null reference (Nothing in Visual Basic).

Properties ​

AccessLevel ​

Gets or sets a value which indicates in which ways the Value attribute of the variable node can be accessed (read/write) and if it provides current and/or historic data.

csharp
public OpcAccessLevel? AccessLevel { get; set; }
vbnet
Public Property AccessLevel As OpcAccessLevel?

Property value

Nullable<OpcAccessLevel>

One of the members defined by the OpcAccessLevel enumeration if specified; otherwise a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

ArrayDimensions ​

since v2.9

Gets the number/lengths of dimensions for an array Value with one or more fixed dimensions.

csharp
public OpcArrayDimensions ArrayDimensions { get; set; }
vbnet
Public Property ArrayDimensions As OpcArrayDimensions

Property value

OpcArrayDimensions

An instance of the OpcArrayDimensions class which offers the number/lengths of dimensions for an array Value.

Remarks

If the ValueRank does not identify an array of a specific dimension (i.e. ValueRank <= 0) ArrayDimensions can be a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

DataType ​

virtual

Gets or sets a value which defines a pre-defined used DataTypeId as one of the members defined by the OpcDataType enumeration to simplify querying standard data types. A null reference (Nothing in Visual Basic) indicates that the attribute is undefined and its default value is used.

csharp
public virtual OpcDataType? DataType { get; set; }
vbnet
Public Overridable Property DataType As OpcDataType?

Property value

Nullable<OpcDataType>

One of the members defined by the OpcDataType enumeration.

DataTypeId ​

Gets or stets the identifier which identifies the node that defines the type of data represented by the variable node. A null reference (Nothing in Visual Basic) indicates that the attribute is undefined and its default value is used.

csharp
public OpcNodeId DataTypeId { get; set; }
vbnet
Public Property DataTypeId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the data type node which defines the type of data represented by the variable node. These data type node defines either a simple or a complex type of data accessible by the Value property.

IsHistorizing ​

Gets or sets a value indicating whether the server is actively collecting data for the history of the variable.

csharp
public bool? IsHistorizing { get; set; }
vbnet
Public Property IsHistorizing As Boolean?

Property value

Nullable<Boolean>

The value true if the server is actively collecting data; otherwise the value false (the default value) or a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

Type ​

Gets value indicating the predefined underlying type definition the new node will represent an instance of.

csharp
public OpcVariableType Type { get; }
vbnet
Public ReadOnly Property Type As OpcVariableType

Property value

OpcVariableType

One of the members defined by the OpcVariableType enumeration or -1 in case of a custom type definition is used (see TypeDefinitionId).

UserAccessLevel ​

Gets or sets a value which indicates in which ways the Value attribute of the variable node can be accessed (read/write) and if it provides current and/or historic data taking user access rights into account.

csharp
public OpcAccessLevel? UserAccessLevel { get; set; }
vbnet
Public Property UserAccessLevel As OpcAccessLevel?

Property value

Nullable<OpcAccessLevel>

One of the members defined by the OpcAccessLevel enumeration if specified; otherwise a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

Value ​

Gets or sets the value of the variable node which may be simple or complex. A null reference (Nothing in Visual Basic) indicates that the attribute is undefined and its default value is used.

csharp
public object Value { get; set; }
vbnet
Public Property Value As Object

Property value

Object

A object representing the value of the variable node.

ValueRank ​

Gets or sets a value which indicates whether the value attribute of the variable is an array and how many dimensions the array has.

csharp
public int? ValueRank { get; set; }
vbnet
Public Property ValueRank As Integer?

Property value

Nullable<Int32>

One of the values defined by the ValueRanks class or a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

Methods ​

OfType ​

static

Retrieves an instance which represents the definition of a variable type that can be used to define OpcAddVariableNode command instances using the type of variable node represented by the OpcAddVariableNode.TypeDefinition instance provided.

csharp
public static OpcAddVariableNode.TypeDefinition OfType(
    OpcNodeId typeDefinitionId)
vbnet
Public Shared Function OfType(
    typeDefinitionId As OpcNodeId) As OpcAddVariableNode.TypeDefinition

Parameters

NameTypeDescription
typeDefinitionIdOpcNodeIdThe OpcNodeId of the type definition to provide.

Returns

OpcAddVariableNode.TypeDefinition

A new instance of the OpcAddVariableNode.TypeDefinition class which can be used to define typed OpcAddVariableNode command instances.

Exceptions

ExceptionCondition
ArgumentExceptionThe typeDefinitionId is equals Null.
ArgumentNullExceptionThe typeDefinitionId is a null reference (Nothing in Visual Basic).