Skip to content

Reference

OpcVariableNode Members

Defines a node to use to represent values which may be simple or complex.

Reference

OpcVariableNode Members ​

Type
OpcVariableNode
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcInstanceNode, OpcNode.

Constructors ​

OpcVariableNode ​

protected · 16 overloads

OverloadDescription
OpcVariableNode(OpcName)protectedInitializes a new instance of the OpcVariableNode class accessible by the name specified.
OpcVariableNode(OpcNodeModel, OpcName)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name specified.
OpcVariableNode(OpcName, object)protectedInitializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value given by value.
OpcVariableNode(OpcNodeModel, OpcName, object)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value given by value.
OpcVariableNode(OpcName, OpcNodeId)protectedInitializes a new instance of the OpcVariableNode class accessible by the name and id specified.
OpcVariableNode(OpcNodeModel, OpcName, OpcNodeId)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name and id specified.
OpcVariableNode(OpcName, OpcNodeId, object)protectedInitializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value given by value.
OpcVariableNode(OpcNodeModel, OpcName, OpcNodeId, object)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value given by value.
OpcVariableNode(IOpcNode, OpcName)protectedInitializes a new instance of the OpcVariableNode class accessible by the name specified as a child node of the parent node given.
OpcVariableNode(OpcNodeModel, IOpcNode, OpcName)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name specified as a child node of the parent node given.
OpcVariableNode(IOpcNode, OpcName, object)protectedInitializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, object)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
OpcVariableNode(IOpcNode, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcVariableNode class accessible by the name and id specified as a child node of the parent node given.
OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name and id specified as a child node of the parent node given.
OpcVariableNode(IOpcNode, OpcName, OpcNodeId, object)protectedInitializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, object)protected · since v2.50Initializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.

OpcVariableNode(OpcName) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name specified.

csharp
protected OpcVariableNode(OpcName name)
vbnet
Protected Sub New(name As OpcName)

Parameters

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

OpcVariableNode(OpcNodeModel, OpcName) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name specified.

csharp
protected OpcVariableNode(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 variable node can be accessed.

OpcVariableNode(OpcName, object) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value given by value.

csharp
protected OpcVariableNode(OpcName name, object value)
vbnet
Protected Sub New(name As OpcName, value As Object)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new variable node can be accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(OpcNodeModel, OpcName, object) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name specified with the initial value given by value.

csharp
protected OpcVariableNode(OpcNodeModel model, OpcName name, object value)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, value As Object)

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 variable node can be accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified.

csharp
protected OpcVariableNode(OpcName name, OpcNodeId id)
vbnet
Protected Sub New(name As OpcName, id As OpcNodeId)

Parameters

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

OpcVariableNode(OpcNodeModel, OpcName, OpcNodeId) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified.

csharp
protected OpcVariableNode(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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.

OpcVariableNode(OpcName, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value given by value.

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

Parameters

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

OpcVariableNode(OpcNodeModel, OpcName, OpcNodeId, object) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified with the initial value given by value.

csharp
protected OpcVariableNode(
    OpcNodeModel model,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(IOpcNode, OpcName) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name specified as a child node of the parent node given.

csharp
protected OpcVariableNode(IOpcNode parent, OpcName name)
vbnet
Protected 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 variable node can be accessed.

OpcVariableNode(OpcNodeModel, IOpcNode, OpcName) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name specified as a child node of the parent node given.

csharp
protected OpcVariableNode(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 variable node can be accessed.

OpcVariableNode(IOpcNode, OpcName, object) ​

protected

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

csharp
protected OpcVariableNode(IOpcNode parent, OpcName name, object value)
vbnet
Protected Sub New(parent As IOpcNode, name As OpcName, value As Object)

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 variable node can be accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, object) ​

protected · since v2.50

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

csharp
protected OpcVariableNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    value As Object)

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 variable node can be accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(IOpcNode, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified as a child node of the parent node given.

csharp
protected OpcVariableNode(IOpcNode parent, OpcName name, OpcNodeId id)
vbnet
Protected 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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.

OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode class accessible by the name and id specified as a child node of the parent node given.

csharp
protected OpcVariableNode(
    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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.

OpcVariableNode(IOpcNode, OpcName, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcVariableNode 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 OpcVariableNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Protected Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.
valueObjectThe initial value of the new variable node.

OpcVariableNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, object) ​

protected · since v2.50

Initializes a new instance of the OpcVariableNode 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 OpcVariableNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

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 variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new variable node can be identified and accessed.
valueObjectThe initial value of the new variable node.

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

OpcAccessLevel

One of the members defined by the OpcAccessLevel enumeration. Which is used to indicate the ways the Value attribute of the current OpcVariableNode can be accessed (read/write) and if it provides current and/or historic data. The AccessLevel does not take any user access rights into account, although the variable is writable this may be restricted to a certain user / user group.

Implements

AccessLevel

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.

Implements

ArrayDimensions

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).

A node created with an array as its initial value takes the lengths of that array as its array dimensions, which states them to clients as the maximum lengths (OPC 10000-3). The server does not enforce them, and they are not adjusted when the value changes. If the length of the array varies, state a length of 0 for each dimension, which means that the length is not known, for example new OpcArrayDimensions(0).

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.

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

Property value

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.

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.

Implements

DataTypeId

DefaultReferenceTypeId ​

protected · override

Gets the default identifier which identifies the type that defines the underlying node reference within this OpcInstanceNode is referenced by its parent node.

csharp
protected override OpcNodeId DefaultReferenceTypeId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultReferenceTypeId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the reference wihin this OpcInstanceNode is referenced. These reference defines the typical behaviour of an instance node and its role in the address space regarding its parent. If there exists no specific reference type a null reference (Nothing in Visual Basic).

Overrides

DefaultReferenceTypeId

DefaultTypeDefinitionId ​

protected · override

Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.

csharp
protected override OpcNodeId DefaultTypeDefinitionId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).

Overrides

DefaultTypeDefinitionId

HistoryConfiguration ​

csharp
public OpcHistoryConfigurationNode HistoryConfiguration { get; }
vbnet
Public ReadOnly Property HistoryConfiguration As OpcHistoryConfigurationNode

Property value

OpcHistoryConfigurationNode

IsArray ​

since v2.18

Gets a value indicating whether the Value of the OpcVariableNode represented is an array.

csharp
public bool IsArray { get; }
vbnet
Public ReadOnly Property IsArray As Boolean

Property value

Boolean

The value true if the Value of the OpcVariableNode represented is an array; otherwise the false.

IsHistorizing ​

Gets or sets a value indiciating whether there exists an value history for the node.

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

Property value

Boolean

The value true if a value history exists; otherwise the value false. The default value is false.

ReadAccessLevelCallback ​

csharp
public OpcReadAttributeValueCallback<OpcAccessLevel> ReadAccessLevelCallback { get; set; }
vbnet
Public Property ReadAccessLevelCallback As OpcReadAttributeValueCallback(Of OpcAccessLevel)

Property value

OpcReadAttributeValueCallback<OpcAccessLevel>

ReadArrayDimensionsCallback ​

since v2.9

csharp
public OpcReadAttributeValueCallback<OpcArrayDimensions> ReadArrayDimensionsCallback { get; set; }
vbnet
Public Property ReadArrayDimensionsCallback As OpcReadAttributeValueCallback(Of OpcArrayDimensions)

Property value

OpcReadAttributeValueCallback<OpcArrayDimensions>

ReadDataTypeCallback ​

csharp
public OpcReadAttributeValueCallback<OpcNodeId> ReadDataTypeCallback { get; set; }
vbnet
Public Property ReadDataTypeCallback As OpcReadAttributeValueCallback(Of OpcNodeId)

Property value

OpcReadAttributeValueCallback<OpcNodeId>

ReadIsHistorizingCallback ​

csharp
public OpcReadAttributeValueCallback<bool> ReadIsHistorizingCallback { get; set; }
vbnet
Public Property ReadIsHistorizingCallback As OpcReadAttributeValueCallback(Of Boolean)

Property value

OpcReadAttributeValueCallback<Boolean>

ReadUserAccessLevelCallback ​

csharp
public OpcReadAttributeValueCallback<OpcAccessLevel> ReadUserAccessLevelCallback { get; set; }
vbnet
Public Property ReadUserAccessLevelCallback As OpcReadAttributeValueCallback(Of OpcAccessLevel)

Property value

OpcReadAttributeValueCallback<OpcAccessLevel>

ReadValueRankCallback ​

csharp
public OpcReadAttributeValueCallback<int> ReadValueRankCallback { get; set; }
vbnet
Public Property ReadValueRankCallback As OpcReadAttributeValueCallback(Of Integer)

Property value

OpcReadAttributeValueCallback<Int32>

ReadVariableValueCallback ​

Gets or sets a callback used to read the variable value.

csharp
public OpcReadVariableValueCallback ReadVariableValueCallback { get; set; }
vbnet
Public Property ReadVariableValueCallback As OpcReadVariableValueCallback

Property value

OpcReadVariableValueCallback

A OpcReadVariableValueCallback used to read the variable value as an object. The value can also be a null reference (Nothing in Visual Basic).

Status ​

csharp
public OpcStatus Status { get; }
vbnet
Public ReadOnly Property Status As OpcStatus

Property value

OpcStatus

Timestamp ​

csharp
public DateTime? Timestamp { get; set; }
vbnet
Public Property Timestamp As Date?

Property value

Nullable<DateTime>

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

OpcAccessLevel

One of the members defined by the OpcAccessLevel enumeration. Which is used to indicate the ways the Value attribute of the current OpcVariableNode can be accessed (read/write) and if it provides current and/or historic data. The UserAccessLevel takes user access rights into account therefore its access may be restricted to a certain user / user group.

Implements

UserAccessLevel

Value ​

Gets or sets the value of the variable node which may be simple or complex.

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

Property value

Object

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

Implements

Value

Remarks

Setting the value is not synchronized with a client writing the value at the same time. Clients learn about the new value once the changes are applied, see ApplyChanges.

ValueRank ​

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

Property value

Int32

Implements

ValueRank

WriteAccessLevelCallback ​

csharp
public OpcWriteAttributeValueCallback<OpcAccessLevel> WriteAccessLevelCallback { get; set; }
vbnet
Public Property WriteAccessLevelCallback As OpcWriteAttributeValueCallback(Of OpcAccessLevel)

Property value

OpcWriteAttributeValueCallback<OpcAccessLevel>

WriteArrayDimensionsCallback ​

since v2.9

csharp
public OpcWriteAttributeValueCallback<OpcArrayDimensions> WriteArrayDimensionsCallback { get; set; }
vbnet
Public Property WriteArrayDimensionsCallback As OpcWriteAttributeValueCallback(Of OpcArrayDimensions)

Property value

OpcWriteAttributeValueCallback<OpcArrayDimensions>

WriteDataTypeCallback ​

csharp
public OpcWriteAttributeValueCallback<OpcNodeId> WriteDataTypeCallback { get; set; }
vbnet
Public Property WriteDataTypeCallback As OpcWriteAttributeValueCallback(Of OpcNodeId)

Property value

OpcWriteAttributeValueCallback<OpcNodeId>

WriteIsHistorizingCallback ​

csharp
public OpcWriteAttributeValueCallback<bool> WriteIsHistorizingCallback { get; set; }
vbnet
Public Property WriteIsHistorizingCallback As OpcWriteAttributeValueCallback(Of Boolean)

Property value

OpcWriteAttributeValueCallback<Boolean>

WriteUserAccessLevelCallback ​

csharp
public OpcWriteAttributeValueCallback<OpcAccessLevel> WriteUserAccessLevelCallback { get; set; }
vbnet
Public Property WriteUserAccessLevelCallback As OpcWriteAttributeValueCallback(Of OpcAccessLevel)

Property value

OpcWriteAttributeValueCallback<OpcAccessLevel>

WriteValueRankCallback ​

csharp
public OpcWriteAttributeValueCallback<int> WriteValueRankCallback { get; set; }
vbnet
Public Property WriteValueRankCallback As OpcWriteAttributeValueCallback(Of Integer)

Property value

OpcWriteAttributeValueCallback<Int32>

WriteVariableValueCallback ​

Gets or sets a callback used to write the variable value.

csharp
public OpcWriteVariableValueCallback WriteVariableValueCallback { get; set; }
vbnet
Public Property WriteVariableValueCallback As OpcWriteVariableValueCallback

Property value

OpcWriteVariableValueCallback

A OpcWriteVariableValueCallback used to write the variable value as an object. The value can also be a null reference (Nothing in Visual Basic).

Methods ​

InitializeDefaults ​

protected · override

Initializes the default values used by the OpcVariableNode.

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.

ReadAttributeValueCore ​

protected · override

csharp
protected override OpcAttributeValue<T> ReadAttributeValueCore<T>(
    OpcReadAttributeValueContext context,
    OpcAttributeValue<T> value)
vbnet
Protected Overrides Function ReadAttributeValueCore(Of T)(
    context As OpcReadAttributeValueContext,
    value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)

Type parameters

NameDescription
T

Parameters

NameTypeDescription
contextOpcReadAttributeValueContext
valueOpcAttributeValue<T>

Returns

OpcAttributeValue<T>

Overrides

ReadAttributeValueCore<T>(OpcReadAttributeValueContext, OpcAttributeValue<T>)

ReadValue ​

Reads the variable node value using the context specified.

csharp
public object ReadValue(OpcReadVariableValueContext context)
vbnet
Public Function ReadValue(context As OpcReadVariableValueContext) As Object

Parameters

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

Returns

Object

The object variable 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).

ReadVariableValue ​

csharp
public OpcVariableValue<object> ReadVariableValue(
    OpcReadVariableValueContext context)
vbnet
Public Function ReadVariableValue(
    context As OpcReadVariableValueContext) As OpcVariableValue(Of Object)

Parameters

NameTypeDescription
contextOpcReadVariableValueContext

Returns

OpcVariableValue<Object>

Exceptions

ExceptionCondition
ArgumentNullException

ReadVariableValueCore ​

protected · virtual

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

csharp
protected virtual OpcVariableValue<object> ReadVariableValueCore(
    OpcReadVariableValueContext context,
    OpcVariableValue<object> value)
vbnet
Protected Overridable Function ReadVariableValueCore(
    context As OpcReadVariableValueContext,
    value As OpcVariableValue(Of Object)) As OpcVariableValue(Of Object)

Parameters

NameTypeDescription
contextOpcReadVariableValueContextThe OpcReadVariableValueContext to use to read the variable node value.
valueOpcVariableValue<Object>The OpcVariableValue<T> containing the currently used value constructed by the value information contained in the variable node cache.

Returns

OpcVariableValue<Object>

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

WriteAttributeValueCore ​

protected · override

csharp
protected override OpcAttributeValue<T> WriteAttributeValueCore<T>(
    OpcWriteAttributeValueContext context,
    OpcAttributeValue<T> value)
vbnet
Protected Overrides Function WriteAttributeValueCore(Of T)(
    context As OpcWriteAttributeValueContext,
    value As OpcAttributeValue(Of T)) As OpcAttributeValue(Of T)

Type parameters

NameDescription
T

Parameters

NameTypeDescription
contextOpcWriteAttributeValueContext
valueOpcAttributeValue<T>

Returns

OpcAttributeValue<T>

Overrides

WriteAttributeValueCore<T>(OpcWriteAttributeValueContext, OpcAttributeValue<T>)

WriteValue ​

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

csharp
public void WriteValue(OpcWriteVariableValueContext context, object value)
vbnet
Public Sub WriteValue(context As OpcWriteVariableValueContext, value As Object)

Parameters

NameTypeDescription
contextOpcWriteVariableValueContextThe OpcWriteVariableValueContext to use to write the variable node value specified.
valueObjectThe object to write to the variable node value.

Exceptions

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

WriteVariableValue ​

csharp
public void WriteVariableValue(
    OpcWriteVariableValueContext context,
    OpcVariableValue<object> value)
vbnet
Public Sub WriteVariableValue(
    context As OpcWriteVariableValueContext,
    value As OpcVariableValue(Of Object))

Parameters

NameTypeDescription
contextOpcWriteVariableValueContext
valueOpcVariableValue<Object>

Exceptions

ExceptionCondition
ArgumentNullException

WriteVariableValueCore ​

protected · virtual

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

csharp
protected virtual OpcVariableValue<object> WriteVariableValueCore(
    OpcWriteVariableValueContext context,
    OpcVariableValue<object> value)
vbnet
Protected Overridable Function WriteVariableValueCore(
    context As OpcWriteVariableValueContext,
    value As OpcVariableValue(Of Object)) As OpcVariableValue(Of Object)

Parameters

NameTypeDescription
contextOpcWriteVariableValueContextThe OpcWriteVariableValueContext to use to write the variable node value.
valueOpcVariableValue<Object>The OpcVariableValue<T> containing the currently used value constructed by the value information contained in the variable node cache.

Returns

OpcVariableValue<Object>

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