Skip to content

Reference

OpcNodeValue Members

Stores the generic value of the Value attribute associated with a specific node optionally associated with status and timestamp information.

Reference

OpcNodeValue<T> Members ​

Type
OpcNodeValue<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from OpcNodeAttribute<T>, OpcValue<T>, OpcValue.

Constructors ​

OpcNodeValue ​

8 overloads

OverloadDescription
OpcNodeValue(OpcNodeId)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute represented belongs to.
OpcNodeValue(OpcNodeId, T)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value and the sourceTimestamp of the value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime, OpcStatus)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and status of the value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime, OpcStatusCode)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and statusCode of the value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime, DateTime)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and serverTimestamp of the value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatus)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp, serverTimestamp and status of the value specified belongs to.
OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatusCode)Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp, serverTimestamp and statusCode of the value specified belongs to.

Exceptions (all overloads)

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

OpcNodeValue(OpcNodeId) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute represented belongs to.

csharp
public OpcNodeValue(OpcNodeId nodeId)
vbnet
Public Sub New(nodeId As OpcNodeId)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node the value of its Value attribute is to be represented.

OpcNodeValue(OpcNodeId, T) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value specified belongs to.

csharp
public OpcNodeValue(OpcNodeId nodeId, T value)
vbnet
Public Sub New(nodeId As OpcNodeId, value As T)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.

OpcNodeValue(OpcNodeId, T, DateTime) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value and the sourceTimestamp of the value specified belongs to.

csharp
public OpcNodeValue(OpcNodeId nodeId, T value, DateTime sourceTimestamp)
vbnet
Public Sub New(nodeId As OpcNodeId, value As T, sourceTimestamp As Date)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.

OpcNodeValue(OpcNodeId, T, DateTime, OpcStatus) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and status of the value specified belongs to.

csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    OpcStatus status)
vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    status As OpcStatus)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
statusOpcStatusThe status information associated with the value.

OpcNodeValue(OpcNodeId, T, DateTime, OpcStatusCode) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and statusCode of the value specified belongs to.

csharp
[CLSCompliant(false)]
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    OpcStatusCode statusCode)
vbnet
<CLSCompliant(False)>
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    statusCode As OpcStatusCode)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
statusCodeOpcStatusCodeOne of the OpcStatusCode members which defines the status information associated with the value.

OpcNodeValue(OpcNodeId, T, DateTime, DateTime) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp and serverTimestamp of the value specified belongs to.

csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp)
vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
serverTimestampDateTimeThe timestamp at which the server recorded the value.

OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatus) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp, serverTimestamp and status of the value specified belongs to.

csharp
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp,
    OpcStatus status)
vbnet
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date,
    status As OpcStatus)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
serverTimestampDateTimeThe timestamp at which the server recorded the value.
statusOpcStatusThe status information associated with the value.

OpcNodeValue(OpcNodeId, T, DateTime, DateTime, OpcStatusCode) ​

Initializes a new instance of the OpcNodeValue<T> class with the nodeId of the node the Value attribute and its value, sourceTimestamp, serverTimestamp and statusCode of the value specified belongs to.

csharp
[CLSCompliant(false)]
public OpcNodeValue(
    OpcNodeId nodeId,
    T value,
    DateTime sourceTimestamp,
    DateTime serverTimestamp,
    OpcStatusCode statusCode)
vbnet
<CLSCompliant(False)>
Public Sub New(
    nodeId As OpcNodeId,
    value As T,
    sourceTimestamp As Date,
    serverTimestamp As Date,
    statusCode As OpcStatusCode)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its Value attribute value is to be represented.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
serverTimestampDateTimeThe timestamp at which the server recorded the value.
statusCodeOpcStatusCodeOne of the OpcStatusCode members which defines the status information associated with the value.

Methods ​

CompareTo ​

5 overloads

OverloadDescription
CompareTo(object)overrideCompares the current OpcNodeValue<T> with the other.
CompareTo(OpcValue)overrideCompares the current OpcNodeValue<T> with the other.
CompareTo(OpcValue<T>)overrideCompares the current OpcNodeValue<T> with the other.
CompareTo(OpcNodeAttribute<T>)overrideCompares the current OpcNodeValue<T> with the other.
CompareTo(OpcNodeValue<T>)virtualCompares the current OpcNodeValue<T> with another OpcNodeValue<T>.

CompareTo(object) ​

override

Compares the current OpcNodeValue<T> with the other.

csharp
public override int CompareTo(object other)
vbnet
Public Overrides Function CompareTo(other As Object) As Integer

Parameters

NameTypeDescription
otherObjectThe OpcNodeValue<T> to compare with this OpcNodeValue<T>.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Overrides

CompareTo(object)

Implements

CompareTo(object)

CompareTo(OpcValue) ​

override

Compares the current OpcNodeValue<T> with the other.

csharp
public override int CompareTo(OpcValue other)
vbnet
Public Overrides Function CompareTo(other As OpcValue) As Integer

Parameters

NameTypeDescription
otherOpcValueThe OpcNodeValue<T> to compare with this OpcNodeValue<T>.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Overrides

CompareTo(OpcValue)

CompareTo(OpcValue<T>) ​

override

Compares the current OpcNodeValue<T> with the other.

csharp
public override int CompareTo(OpcValue<T> other)
vbnet
Public Overrides Function CompareTo(other As OpcValue(Of T)) As Integer

Parameters

NameTypeDescription
otherOpcValue<T>The OpcNodeValue<T> to compare with this OpcNodeValue<T>.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Overrides

CompareTo(OpcValue<T>)

CompareTo(OpcNodeAttribute<T>) ​

override

Compares the current OpcNodeValue<T> with the other.

csharp
public override int CompareTo(OpcNodeAttribute<T> other)
vbnet
Public Overrides Function CompareTo(other As OpcNodeAttribute(Of T)) As Integer

Parameters

NameTypeDescription
otherOpcNodeAttribute<T>The OpcNodeValue<T> to compare with this OpcNodeValue<T>.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Overrides

CompareTo(OpcNodeAttribute<T>)

CompareTo(OpcNodeValue<T>) ​

virtual

Compares the current OpcNodeValue<T> with another OpcNodeValue<T>.

csharp
public virtual int CompareTo(OpcNodeValue<T> other)
vbnet
Public Overridable Function CompareTo(other As OpcNodeValue(Of T)) As Integer

Parameters

NameTypeDescription
otherOpcNodeValue<T>The OpcNodeValue<T> to compare with this OpcNodeValue<T>.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(T)).

Implements

CompareTo(OpcNodeValue<T>)

Equals ​

5 overloads

OverloadDescription
Equals(object)overrideDetermines whether the specified other is equal to this OpcNodeValue<T>.
Equals(OpcValue)overrideDetermines whether the specified other is equal to this OpcNodeValue<T>.
Equals(OpcValue<T>)overrideDetermines whether the specified other is equal to this OpcNodeValue<T>.
Equals(OpcNodeAttribute<T>)overrideDetermines whether the specified other is equal to this OpcNodeValue<T>.
Equals(OpcNodeValue<T>)virtualDetermines whether the specified other is equal to this OpcNodeValue<T>.

Equals(object) ​

override

Determines whether the specified other is equal to this OpcNodeValue<T>.

csharp
public override bool Equals(object other)
vbnet
Public Overrides Function Equals(other As Object) As Boolean

Parameters

NameTypeDescription
otherObjectThe OpcNodeValue<T> to compare to the current OpcNodeValue<T>.

Returns

Boolean

The value true if the specified OpcNodeValue<T> is equal to the current OpcNodeValue<T>; otherwise the value false.

Overrides

Equals(object)

Equals(OpcValue) ​

override

Determines whether the specified other is equal to this OpcNodeValue<T>.

csharp
public override bool Equals(OpcValue other)
vbnet
Public Overrides Function Equals(other As OpcValue) As Boolean

Parameters

NameTypeDescription
otherOpcValueThe OpcNodeValue<T> to compare to the current OpcNodeValue<T>.

Returns

Boolean

The value true if the specified OpcNodeValue<T> is equal to the current OpcNodeValue<T>; otherwise the value false.

Overrides

Equals(OpcValue)

Equals(OpcValue<T>) ​

override

Determines whether the specified other is equal to this OpcNodeValue<T>.

csharp
public override bool Equals(OpcValue<T> other)
vbnet
Public Overrides Function Equals(other As OpcValue(Of T)) As Boolean

Parameters

NameTypeDescription
otherOpcValue<T>The OpcNodeValue<T> to compare to the current OpcNodeValue<T>.

Returns

Boolean

The value true if the specified OpcNodeValue<T> is equal to the current OpcNodeValue<T>; otherwise the value false.

Overrides

Equals(OpcValue<T>)

Equals(OpcNodeAttribute<T>) ​

override

Determines whether the specified other is equal to this OpcNodeValue<T>.

csharp
public override bool Equals(OpcNodeAttribute<T> other)
vbnet
Public Overrides Function Equals(other As OpcNodeAttribute(Of T)) As Boolean

Parameters

NameTypeDescription
otherOpcNodeAttribute<T>The OpcNodeValue<T> to compare to the current OpcNodeValue<T>.

Returns

Boolean

The value true if the specified OpcNodeValue<T> is equal to the current OpcNodeValue<T>; otherwise the value false.

Overrides

Equals(OpcNodeAttribute<T>)

Equals(OpcNodeValue<T>) ​

virtual

Determines whether the specified other is equal to this OpcNodeValue<T>.

csharp
public virtual bool Equals(OpcNodeValue<T> other)
vbnet
Public Overridable Function Equals(other As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
otherOpcNodeValue<T>The OpcNodeValue<T> to compare to the current OpcNodeValue<T>.

Returns

Boolean

The value true if the specified OpcNodeValue<T> is equal to the current OpcNodeValue<T>; otherwise the value false.

Implements

Equals(OpcNodeValue<T>)

GetHashCode ​

override

Retrieves a hash code for this OpcNodeValue<T>.

csharp
public override int GetHashCode()
vbnet
Public Overrides Function GetHashCode() As Integer

Returns

Int32

An int that contains the hash code for the OpcNodeValue<T>.

Overrides

GetHashCode()

Operators ​

Equality ​

static

Returns a value indicating whether two instance of OpcNodeValue<T> are equal.

csharp
public static bool operator ==(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator =(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> to compare.
rightOpcNodeValue<T>The second OpcNodeValue<T> to compare.

Returns

Boolean

The value true if left and right are equal; otherwise the value false.

Explicit ​

static

Converts a OpcNodeValue<T> to an DataValue object.

csharp
[CLSCompliant(false)]
public static explicit operator DataValue(OpcNodeValue<T> value)
vbnet
<CLSCompliant(False)>
Public Shared Narrowing Operator CType(value As OpcNodeValue(Of T)) As DataValue

Parameters

NameTypeDescription
valueOpcNodeValue<T>A OpcNodeValue<T> that represents the value.

Returns

DataValue

An instance of the DataValue class initialized from the value.

GreaterThan ​

static

Determines whether the first specified OpcNodeValue<T> object is greater than the second specified OpcNodeValue<T> object.

csharp
public static bool operator >(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator >(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> object.
rightOpcNodeValue<T>The second OpcNodeValue<T> object.

Returns

Boolean

The value true if left is greater than right; otherwise, false.

GreaterThanOrEqual ​

static

Determines whether the first specified OpcNodeValue<T> object is greater than or equal to the second specified OpcNodeValue<T> object.

csharp
public static bool operator >=(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator >=(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> object.
rightOpcNodeValue<T>The second OpcNodeValue<T> object.

Returns

Boolean

The value true if left is greater than or equal to right; otherwise, false.

Inequality ​

static

Returns a value indicating whether two instances of OpcNodeValue<T> are not equal.

csharp
public static bool operator !=(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator <>(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> to compare.
rightOpcNodeValue<T>The second OpcNodeValue<T> to compare.

Returns

Boolean

The value true if left and right are not equal; otherwise the value false.

LessThan ​

static

Determines whether the first specified OpcNodeValue<T> object is less than the second specified OpcNodeValue<T> object.

csharp
public static bool operator <(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator <(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> object.
rightOpcNodeValue<T>The second OpcNodeValue<T> object.

Returns

Boolean

The value true if left is less than right; otherwise the value false.

Exceptions

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

LessThanOrEqual ​

static

Determines whether the first specified OpcNodeValue<T> object is less than or equal to the second OpcNodeValue<T> object.

csharp
public static bool operator <=(OpcNodeValue<T> left, OpcNodeValue<T> right)
vbnet
Public Shared Operator <=(
    left As OpcNodeValue(Of T),
    right As OpcNodeValue(Of T)) As Boolean

Parameters

NameTypeDescription
leftOpcNodeValue<T>The first OpcNodeValue<T> object.
rightOpcNodeValue<T>The second OpcNodeValue<T> object.

Returns

Boolean

The value true if left is less than or equal to right; otherwise the value false.

Exceptions

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