Skip to content

Reference

OpcPropertyNode Members

Defines a generic property node.

Reference

OpcPropertyNode<T> Members ​

Type
OpcPropertyNode<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcPropertyNode, OpcVariableNode, OpcInstanceNode, OpcNode.

Constructors ​

OpcPropertyNode ​

18 overloads

OverloadDescription
OpcPropertyNode(OpcName)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified.
OpcPropertyNode(OpcName, T)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value given by value.
OpcPropertyNode(OpcName, OpcNodeId)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified.
OpcPropertyNode(OpcName, OpcNodeId, T)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value given by value.
OpcPropertyNode(IOpcNode, OpcName)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified as a child node of the parent node given.
OpcPropertyNode(IOpcNode, OpcName, T)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
OpcPropertyNode(IOpcNode, OpcName, OpcNodeId)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified as a child node of the parent node given.
OpcPropertyNode(IOpcNode, OpcName, OpcNodeId, T)Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
OpcPropertyNode(PropertyState<T>)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class using the content as the instance to wrap.
OpcPropertyNode(PropertyState<T>, OpcNodeModel)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class using the content as the instance to wrap.
OpcPropertyNode(OpcNodeModel, OpcName)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified.
OpcPropertyNode(OpcNodeModel, OpcName, T)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value given by value.
OpcPropertyNode(OpcNodeModel, OpcName, OpcNodeId)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified.
OpcPropertyNode(OpcNodeModel, OpcName, OpcNodeId, T)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value given by value.
OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified as a child node of the parent node given.
OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, T)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified as a child node of the parent node given.
OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, T)protected · since v2.50Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.

OpcPropertyNode(OpcName) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified.

csharp
public OpcPropertyNode(OpcName name)
vbnet
Public Sub New(name As OpcName)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new property node can be accessed.

OpcPropertyNode(OpcName, T) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value given by value.

csharp
public OpcPropertyNode(OpcName name, T value)
vbnet
Public Sub New(name As OpcName, value As T)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new property node can be accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(OpcName, OpcNodeId) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified.

csharp
public OpcPropertyNode(OpcName name, OpcNodeId id)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.

OpcPropertyNode(OpcName, OpcNodeId, T) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value given by value.

csharp
public OpcPropertyNode(OpcName name, OpcNodeId id, T value)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, value As T)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(IOpcNode, OpcName) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified as a child node of the parent node given.

csharp
public OpcPropertyNode(IOpcNode parent, OpcName name)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.

OpcPropertyNode(IOpcNode, OpcName, T) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value defined by value as a child node of the parent node given.

csharp
public OpcPropertyNode(IOpcNode parent, OpcName name, T value)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, value As T)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(IOpcNode, OpcName, OpcNodeId) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified as a child node of the parent node given.

csharp
public OpcPropertyNode(IOpcNode parent, OpcName name, OpcNodeId id)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.

OpcPropertyNode(IOpcNode, OpcName, OpcNodeId, T) ​

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.

csharp
public OpcPropertyNode(IOpcNode parent, OpcName name, OpcNodeId id, T value)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId, value As T)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(PropertyState<T>) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class using the content as the instance to wrap.

csharp
protected OpcPropertyNode(PropertyState<T> content)
vbnet
Protected Sub New(content As PropertyState(Of T))

Parameters

NameTypeDescription
contentPropertyState<T>The PropertyState<T> to wrap.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

OpcPropertyNode(PropertyState<T>, OpcNodeModel) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class using the content as the instance to wrap.

csharp
protected OpcPropertyNode(PropertyState<T> content, OpcNodeModel model)
vbnet
Protected Sub New(content As PropertyState(Of T), model As OpcNodeModel)

Parameters

NameTypeDescription
contentPropertyState<T>The PropertyState<T> to wrap.
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

OpcPropertyNode(OpcNodeModel, OpcName) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified.

csharp
protected OpcPropertyNode(OpcNodeModel model, OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new property node can be accessed.

OpcPropertyNode(OpcNodeModel, OpcName, T) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value given by value.

csharp
protected OpcPropertyNode(OpcNodeModel model, OpcName name, T value)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, value As T)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new property node can be accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(OpcNodeModel, OpcName, OpcNodeId) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified.

csharp
protected OpcPropertyNode(OpcNodeModel model, OpcName name, OpcNodeId id)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.

OpcPropertyNode(OpcNodeModel, OpcName, OpcNodeId, T) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value given by value.

csharp
protected OpcPropertyNode(
    OpcNodeModel model,
    OpcName name,
    OpcNodeId id,
    T value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    name As OpcName,
    id As OpcNodeId,
    value As T)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified as a child node of the parent node given.

csharp
protected OpcPropertyNode(OpcNodeModel model, IOpcNode parent, OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.

OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, T) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name specified with the initial value defined by value as a child node of the parent node given.

csharp
protected OpcPropertyNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    T value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    value As T)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
valueTThe initial value of the new property node.

OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified as a child node of the parent node given.

csharp
protected OpcPropertyNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.

OpcPropertyNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, T) ​

protected · since v2.50

Initializes a new instance of the OpcPropertyNode<T> class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.

csharp
protected OpcPropertyNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    T value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As T)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new property node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new property node can be identified and accessed.
valueTThe initial value of the new property node.

Properties ​

DataType ​

override · since v2.8

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.

csharp
public override OpcDataType DataType { get; set; }
vbnet
Public Overrides Property DataType As OpcDataType

Property value

OpcDataType

One of the members defined by the OpcDataType enumeration.

Overrides

DataType

ReadPropertyGenericValueCallback ​

Gets or sets a callback used to read the property generic value.

csharp
public OpcReadPropertyValueCallback<T> ReadPropertyGenericValueCallback { get; set; }
vbnet
Public Property ReadPropertyGenericValueCallback As OpcReadPropertyValueCallback(Of T)

Property value

OpcReadPropertyValueCallback<T>

A OpcReadPropertyValueCallback<T> used to read the property value as the type defined by T. The value can also be a null reference (Nothing in Visual Basic).

Remarks

This callback is used in call chain with the ReadPropertyValueCallback and will be called with the outcome of that callback routine (in case there is one defined).

Value ​

Gets or sets the value of the property node.

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

Property value

T

A T representing the value of the property node. This can be also a null reference (Nothing in Visual Basic).

WritePropertyGenericValueCallback ​

Gets or sets a callback used to write the property generic value.

csharp
public OpcWritePropertyValueCallback<T> WritePropertyGenericValueCallback { get; set; }
vbnet
Public Property WritePropertyGenericValueCallback As OpcWritePropertyValueCallback(Of T)

Property value

OpcWritePropertyValueCallback<T>

A OpcWritePropertyValueCallback<T> used to write the property value as the type defined by T. The value can also be a null reference (Nothing in Visual Basic).

Remarks

This callback is used in call chain with the WritePropertyValueCallback and will be called with the outcome of that callback routine (in case there is one defined).

Methods ​

InitializeDefaults ​

protected · override

Initializes the default values used by the OpcPropertyNode<T>.

csharp
protected override void InitializeDefaults()
vbnet
Protected Overrides Sub InitializeDefaults()

Overrides

InitializeDefaults

Remarks

This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.

ReadGenericValue ​

Reads the property node value using the context specified.

csharp
public T ReadGenericValue(OpcReadVariableValueContext context)
vbnet
Public Function ReadGenericValue(context As OpcReadVariableValueContext) As T

Parameters

NameTypeDescription
contextOpcReadVariableValueContextThe OpcReadVariableValueContext to use to read the property node value.

Returns

T

The T property node value associated with this node and read using the context specified. This can also be a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

ReadPropertyGenericValueCore ​

protected · virtual

Reads the value of the property node using the context and value information specified.

csharp
protected virtual OpcPropertyValue<T> ReadPropertyGenericValueCore(
    OpcReadPropertyValueContext<OpcPropertyNode<T>> context,
    OpcPropertyValue<T> value)
vbnet
Protected Overridable Function ReadPropertyGenericValueCore(
    context As OpcReadPropertyValueContext(Of OpcPropertyNode(Of T)),
    value As OpcPropertyValue(Of T)) As OpcPropertyValue(Of T)

Parameters

NameTypeDescription
contextOpcReadPropertyValueContext<OpcPropertyNode<T>>The OpcReadPropertyValueContext<T> to use to read the property node value.
valueOpcPropertyValue<T>The OpcPropertyValue<T> containing the currently used value constructed by the value information contained in the property node cache.

Returns

OpcPropertyValue<T>

The OpcPropertyValue<T> read using the ReadPropertyGenericValueCallback or the value if there is no custom callback routine defined.

ReadPropertyValueCore ​

protected · override

Reads the value of the property node using the context and value information specified.

csharp
protected override sealed OpcPropertyValue<object> ReadPropertyValueCore(
    OpcReadPropertyValueContext context,
    OpcPropertyValue<object> value)
vbnet
Protected NotOverridable Overrides Function ReadPropertyValueCore(
    context As OpcReadPropertyValueContext,
    value As OpcPropertyValue(Of Object)) As OpcPropertyValue(Of Object)

Parameters

NameTypeDescription
contextOpcReadPropertyValueContextThe OpcReadPropertyValueContext to use to read the property node value.
valueOpcPropertyValue<Object>The OpcPropertyValue<T> containing the currently used value constructed by the value information contained in the property node cache.

Returns

OpcPropertyValue<Object>

The OpcPropertyValue<T> read using the ReadPropertyValueCallback or the value if there is no custom callback routine defined.

Overrides

ReadPropertyValueCore

WriteGenericValue ​

Writes the value to the property node value using the context specified.

csharp
public void WriteGenericValue(OpcWriteVariableValueContext context, T value)
vbnet
Public Sub WriteGenericValue(
    context As OpcWriteVariableValueContext,
    value As T)

Parameters

NameTypeDescription
contextOpcWriteVariableValueContextThe OpcWriteVariableValueContext to use to write the property node value specified.
valueTThe T to write to the property node value.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

WritePropertyGenericValueCore ​

protected · virtual

Writes the value of the property node using the context and value information specified.

csharp
protected virtual OpcPropertyValue<T> WritePropertyGenericValueCore(
    OpcWritePropertyValueContext<OpcPropertyNode<T>> context,
    OpcPropertyValue<T> value)
vbnet
Protected Overridable Function WritePropertyGenericValueCore(
    context As OpcWritePropertyValueContext(Of OpcPropertyNode(Of T)),
    value As OpcPropertyValue(Of T)) As OpcPropertyValue(Of T)

Parameters

NameTypeDescription
contextOpcWritePropertyValueContext<OpcPropertyNode<T>>The OpcWritePropertyValueContext<T> to use to write the property node value.
valueOpcPropertyValue<T>The OpcPropertyValue<T> containing the currently used value constructed by the value information contained in the property node cache.

Returns

OpcPropertyValue<T>

The OpcPropertyValue<T> written using the WritePropertyGenericValueCallback or the value if there is no custom callback routine defined.

WritePropertyValueCore ​

protected · override

Writes the value of the property node using the context and value information specified.

csharp
protected override sealed OpcPropertyValue<object> WritePropertyValueCore(
    OpcWritePropertyValueContext context,
    OpcPropertyValue<object> value)
vbnet
Protected NotOverridable Overrides Function WritePropertyValueCore(
    context As OpcWritePropertyValueContext,
    value As OpcPropertyValue(Of Object)) As OpcPropertyValue(Of Object)

Parameters

NameTypeDescription
contextOpcWritePropertyValueContextThe OpcWritePropertyValueContext to use to write the property node value.
valueOpcPropertyValue<Object>The OpcPropertyValue<T> containing the currently used value constructed by the value information contained in the property node cache.

Returns

OpcPropertyValue<Object>

The OpcPropertyValue<T> written using the WritePropertyValueCallback or the value if there is no custom callback routine defined.

Overrides

WritePropertyValueCore