Skip to content

Reference

OpcNodeAttribute Members

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

Reference

OpcNodeAttribute<T> Members ​

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

Inherits members from OpcValue<T>, OpcValue.

Constructors ​

OpcNodeAttribute ​

8 overloads

OverloadDescription
OpcNodeAttribute(OpcNodeId, OpcAttribute)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value with the sourceTimestamp of the value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatus)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value, sourceTimestamp and status of the value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatusCode)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value, sourceTimestamp and statusCode of the value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value, sourceTimestamp and serverTimestamp of the value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatus)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute and its value, sourceTimestamp, serverTimestamp and status of the value specified belongs to.
OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatusCode)Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the 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).

OpcNodeAttribute(OpcNodeId, OpcAttribute) ​

Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute specified belongs to.

csharp
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute)
vbnet
Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T) ​

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

csharp
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value)
vbnet
Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute, value As T)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
valueTThe value to represent.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatus) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
statusOpcStatusThe status information associated with the value.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, OpcStatusCode) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
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.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
valueTThe value to represent.
sourceTimestampDateTimeThe timestamp at which the source produced the value.
serverTimestampDateTimeThe timestamp at which the server recorded the value.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatus) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
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.

OpcNodeAttribute(OpcNodeId, OpcAttribute, T, DateTime, DateTime, OpcStatusCode) ​

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

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node its attribute value is to be represented.
attributeOpcAttributeThe OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute<T> relates to.
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.

Properties ​

Attribute ​

Gets a value indicating which attribute of a node is represented.

csharp
public OpcAttribute Attribute { get; }
vbnet
Public ReadOnly Property Attribute As OpcAttribute

Property value

OpcAttribute

One of the members defined by the OpcAttribute enumeration.

Implements

Attribute

NodeId ​

Gets the node identifier of the node described.

csharp
public OpcNodeId NodeId { get; }
vbnet
Public ReadOnly Property NodeId As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId class identifying the node described.

Implements

NodeId

Methods ​

CompareTo ​

4 overloads

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

CompareTo(object) ​

override

Compares the current OpcNodeAttribute<T> with the other.

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

Parameters

NameTypeDescription
otherObjectThe OpcNodeAttribute<T> to compare with this OpcNodeAttribute<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 OpcNodeAttribute<T> with the other.

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

Parameters

NameTypeDescription
otherOpcValueThe OpcNodeAttribute<T> to compare with this OpcNodeAttribute<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 OpcNodeAttribute<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 OpcNodeAttribute<T> to compare with this OpcNodeAttribute<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>) ​

virtual

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

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

Parameters

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

Returns

Int32

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

Implements

CompareTo(OpcNodeAttribute<T>)

Equals ​

4 overloads

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

Equals(object) ​

override

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

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

Parameters

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

Returns

Boolean

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

Overrides

Equals(object)

Equals(OpcValue) ​

override

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

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

Parameters

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

Returns

Boolean

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

Overrides

Equals(OpcValue)

Equals(OpcValue<T>) ​

override

Determines whether the specified other is equal to this OpcNodeAttribute<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 OpcNodeAttribute<T> to compare to the current OpcNodeAttribute<T>.

Returns

Boolean

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

Overrides

Equals(OpcValue<T>)

Equals(OpcNodeAttribute<T>) ​

virtual

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

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

Parameters

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

Returns

Boolean

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

Implements

Equals(OpcNodeAttribute<T>)

GetHashCode ​

override

Retrieves a hash code for this OpcNodeAttribute<T>.

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

Returns

Int32

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

Overrides

GetHashCode()

ToString ​

override

Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.

csharp
public override string ToString(string format, IFormatProvider formatProvider)
vbnet
Public Overrides Function ToString(
    format As String,
    formatProvider As IFormatProvider) As String

Parameters

NameTypeDescription
formatStringA standard or custom format string.
formatProviderIFormatProviderAn object that supplies culture-specific formatting information.

Returns

String

The string representation of the value of this instance as specified by format and provider.

Exceptions

ExceptionCondition
FormatExceptionThe format is invalid or not supported.

Overrides

ToString

Operators ​

Equality ​

static

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

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> to compare.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<T> to compare.

Returns

Boolean

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

Explicit ​

static

Converts a OpcNodeAttribute<T> to an DataValue object.

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

Parameters

NameTypeDescription
valueOpcNodeAttribute<T>A OpcNodeAttribute<T> that represents the value.

Returns

DataValue

An instance of the DataValue class initialized from the value.

GreaterThan ​

static

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

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> object.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<T> object.

Returns

Boolean

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

GreaterThanOrEqual ​

static

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

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> object.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<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 OpcNodeAttribute<T> are not equal.

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> to compare.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<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 OpcNodeAttribute<T> object is less than the second specified OpcNodeAttribute<T> object.

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> object.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<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 OpcNodeAttribute<T> object is less than or equal to the second OpcNodeAttribute<T> object.

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

Parameters

NameTypeDescription
leftOpcNodeAttribute<T>The first OpcNodeAttribute<T> object.
rightOpcNodeAttribute<T>The second OpcNodeAttribute<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).