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
| Overload | Description |
|---|---|
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value with the sourceTimestamp of the value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value, sourceTimestamp and status of the value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value, sourceTimestamp and statusCode of the value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value, sourceTimestamp and serverTimestamp of the value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value, sourceTimestamp, serverTimestamp and status of the value specified belongs to. |
| OpcNodeAttribute( | Initializes a new instance of the OpcNodeAttribute<nodeId of the node the attribute and its value, sourceTimestamp, serverTimestamp and statusCode of the value specified belongs to. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The nodeId is a null reference ( |
OpcNodeAttribute(OpcNodeId, OpcAttribute)
Initializes a new instance of the OpcNodeAttribute<T> class with the nodeId of the node the attribute specified belongs to.
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute)Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
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.
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value)Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute, value As T)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The 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.
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp)Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The 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.
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp,
OpcStatus status)Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date,
status As OpcStatus)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The timestamp at which the source produced the value. |
status | OpcStatus | The 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.
[CLSCompliant(false)]
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp,
OpcStatusCode statusCode)<CLSCompliant(False)>
Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date,
statusCode As OpcStatusCode)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The timestamp at which the source produced the value. |
statusCode | OpcStatusCode | One 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.
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp,
DateTime serverTimestamp)Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date,
serverTimestamp As Date)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The timestamp at which the source produced the value. |
serverTimestamp | DateTime | The 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.
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp,
DateTime serverTimestamp,
OpcStatus status)Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date,
serverTimestamp As Date,
status As OpcStatus)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The timestamp at which the source produced the value. |
serverTimestamp | DateTime | The timestamp at which the server recorded the value. |
status | OpcStatus | The 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.
[CLSCompliant(false)]
public OpcNodeAttribute(
OpcNodeId nodeId,
OpcAttribute attribute,
T value,
DateTime sourceTimestamp,
DateTime serverTimestamp,
OpcStatusCode statusCode)<CLSCompliant(False)>
Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
value As T,
sourceTimestamp As Date,
serverTimestamp As Date,
statusCode As OpcStatusCode)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node its attribute value is to be represented. |
attribute | OpcAttribute | The OpcAttribute value indentifying the kind of attribute the new OpcNodeAttribute< |
value | T | The value to represent. |
sourceTimestamp | DateTime | The timestamp at which the source produced the value. |
serverTimestamp | DateTime | The timestamp at which the server recorded the value. |
statusCode | OpcStatusCode | One 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.
public OpcAttribute Attribute { get; }Public ReadOnly Property Attribute As OpcAttributeProperty value
One of the members defined by the OpcAttribute enumeration.
Implements
NodeId
Gets the node identifier of the node described.
public OpcNodeId NodeId { get; }Public ReadOnly Property NodeId As OpcNodeIdProperty value
An instance of the OpcNodeId class identifying the node described.
Implements
Methods
CompareTo
| Overload | Description |
|---|---|
| CompareTo( | Compares the current OpcNodeAttribute<other. |
| CompareTo( | Compares the current OpcNodeAttribute<other. |
| CompareTo( | Compares the current OpcNodeAttribute<other. |
| CompareTo( | Compares the current OpcNodeAttribute< |
CompareTo(object)
Compares the current OpcNodeAttribute<T> with the other.
public override int CompareTo(object other)Public Overrides Function CompareTo(other As Object) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcNodeAttribute< |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Overrides
Implements
CompareTo(OpcValue)
Compares the current OpcNodeAttribute<T> with the other.
public override int CompareTo(OpcValue other)Public Overrides Function CompareTo(other As OpcValue) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | OpcValue | The OpcNodeAttribute< |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Overrides
CompareTo(OpcValue<T>)
Compares the current OpcNodeAttribute<T> with the other.
public override int CompareTo(OpcValue<T> other)Public Overrides Function CompareTo(other As OpcValue(Of T)) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | OpcValue< | The OpcNodeAttribute< |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Overrides
CompareTo(OpcNodeAttribute<T>)
Compares the current OpcNodeAttribute<T> with another OpcNodeAttribute<T>.
public virtual int CompareTo(OpcNodeAttribute<T> other)Public Overridable Function CompareTo(
other As OpcNodeAttribute(Of T)) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | OpcNodeAttribute< | The OpcNodeAttribute< |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(T)).
Implements
CompareTo(OpcNodeAttribute<T>)
Equals
| Overload | Description |
|---|---|
| Equals( | Determines whether the specified other is equal to this OpcNodeAttribute< |
| Equals( | Determines whether the specified other is equal to this OpcNodeAttribute< |
| Equals( | Determines whether the specified other is equal to this OpcNodeAttribute< |
| Equals( | Determines whether the specified other is equal to this OpcNodeAttribute< |
Equals(object)
Determines whether the specified other is equal to this OpcNodeAttribute<T>.
public override bool Equals(object other)Public Overrides Function Equals(other As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcNodeAttribute< |
Returns
The value true if the specified OpcNodeAttribute<T> is equal to the current OpcNodeAttribute<T>; otherwise the value false.
Overrides
Equals(OpcValue)
Determines whether the specified other is equal to this OpcNodeAttribute<T>.
public override bool Equals(OpcValue other)Public Overrides Function Equals(other As OpcValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcValue | The OpcNodeAttribute< |
Returns
The value true if the specified OpcNodeAttribute<T> is equal to the current OpcNodeAttribute<T>; otherwise the value false.
Overrides
Equals(OpcValue<T>)
Determines whether the specified other is equal to this OpcNodeAttribute<T>.
public override bool Equals(OpcValue<T> other)Public Overrides Function Equals(other As OpcValue(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcValue< | The OpcNodeAttribute< |
Returns
The value true if the specified OpcNodeAttribute<T> is equal to the current OpcNodeAttribute<T>; otherwise the value false.
Overrides
Equals(OpcNodeAttribute<T>)
Determines whether the specified other is equal to this OpcNodeAttribute<T>.
public virtual bool Equals(OpcNodeAttribute<T> other)Public Overridable Function Equals(other As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcNodeAttribute< | The OpcNodeAttribute< |
Returns
The value true if the specified OpcNodeAttribute<T> is equal to the current OpcNodeAttribute<T>; otherwise the value false.
Implements
GetHashCode
Retrieves a hash code for this OpcNodeAttribute<T>.
public override int GetHashCode()Public Overrides Function GetHashCode() As IntegerReturns
An int that contains the hash code for the OpcNodeAttribute<T>.
Overrides
ToString
Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.
public override string ToString(string format, IFormatProvider formatProvider)Public Overrides Function ToString(
format As String,
formatProvider As IFormatProvider) As StringParameters
| Name | Type | Description |
|---|---|---|
format | String | A standard or custom format string. |
formatProvider | IFormatProvider | An object that supplies culture-specific formatting information. |
Returns
The string representation of the value of this instance as specified by format and provider.
Exceptions
| Exception | Condition |
|---|---|
| FormatException | The format is invalid or not supported. |
Overrides
Operators
Equality
Returns a value indicating whether two instance of OpcNodeAttribute<T> are equal.
public static bool operator ==(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator =(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left and right are equal; otherwise the value false.
Explicit
Converts a OpcNodeAttribute<T> to an DataValue object.
[CLSCompliant(false)]
public static explicit operator DataValue(OpcNodeAttribute<T> value)<CLSCompliant(False)>
Public Shared Narrowing Operator CType(
value As OpcNodeAttribute(Of T)) As DataValueParameters
| Name | Type | Description |
|---|---|---|
value | OpcNodeAttribute< | A OpcNodeAttribute< |
Returns
DataValue
An instance of the DataValue class initialized from the value.
GreaterThan
Determines whether the first specified OpcNodeAttribute<T> object is greater than the second specified OpcNodeAttribute<T> object.
public static bool operator >(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator >(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left is greater than right; otherwise, false.
GreaterThanOrEqual
Determines whether the first specified OpcNodeAttribute<T> object is greater than or equal to the second specified OpcNodeAttribute<T> object.
public static bool operator >=(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator >=(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left is greater than or equal to right; otherwise, false.
Inequality
Returns a value indicating whether two instances of OpcNodeAttribute<T> are not equal.
public static bool operator !=(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator <>(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left and right are not equal; otherwise the value false.
LessThan
Determines whether the first specified OpcNodeAttribute<T> object is less than the second specified OpcNodeAttribute<T> object.
public static bool operator <(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator <(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left is less than right; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
LessThanOrEqual
Determines whether the first specified OpcNodeAttribute<T> object is less than or equal to the second OpcNodeAttribute<T> object.
public static bool operator <=(
OpcNodeAttribute<T> left,
OpcNodeAttribute<T> right)Public Shared Operator <=(
left As OpcNodeAttribute(Of T),
right As OpcNodeAttribute(Of T)) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcNodeAttribute< | The first OpcNodeAttribute< |
right | OpcNodeAttribute< | The second OpcNodeAttribute< |
Returns
The value true if left is less than or equal to right; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |

