Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcNodeAttribute<T> type exposes the following members.
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute)
Parameters
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´1 relates to.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value)
Parameters
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´1 relates to.
value
T
The value to represent.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
with the sourceTimestamp
of the value
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp)
Parameters
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´1 relates to.
value
T
The value to represent.
sourceTimestamp
DateTime
The timestamp at which the source produced the value
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
, sourceTimestamp
and serverTimestamp
of the value
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp, DateTime serverTimestamp)
Parameters
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´1 relates to.
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
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
, sourceTimestamp
, serverTimestamp
and status
of the value
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp, DateTime serverTimestamp, OpcStatus status)
Parameters
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´1 relates to.
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
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
, sourceTimestamp
, serverTimestamp
and statusCode
of the value
specified belongs to.
C#
[CLSCompliant(false)] public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp, DateTime serverTimestamp, OpcStatusCode statusCode)
Parameters
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´1 relates to.
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
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
, sourceTimestamp
and status
of the value
specified belongs to.
C#
public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp, OpcStatus status)
Parameters
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´1 relates to.
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
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcNodeAttribute´1 class with the nodeId
of the node the attribute
and its value
, sourceTimestamp
and statusCode
of the value
specified belongs to.
C#
[CLSCompliant(false)] public OpcNodeAttribute(OpcNodeId nodeId, OpcAttribute attribute, T value, DateTime sourceTimestamp, OpcStatusCode statusCode)
Parameters
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´1 relates to.
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
.
Exceptions
The nodeId
is a null reference (Nothing in Visual Basic).
Gets a value indicating which attribute of a node is represented.
C#
public OpcAttribute Attribute { get; }
Property Value
One of the members defined by the OpcAttribute enumeration.
Compares the current OpcNodeAttribute´1 with the other
.
C#
public override int CompareTo(object other)
Parameters
other
Object
The OpcNodeAttribute´1 to compare with this OpcNodeAttribute´1.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).
Compares the current OpcNodeAttribute´1 with another OpcNodeAttribute´1.
C#
public virtual int CompareTo(OpcNodeAttribute<T> other)
Parameters
other
OpcNodeAttribute`1
The OpcNodeAttribute´1 to compare with this OpcNodeAttribute´1.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(0)).
Compares the current OpcNodeAttribute´1 with the other
.
C#
public override int CompareTo(OpcValue other)
Parameters
other
OpcValue
The OpcNodeAttribute´1 to compare with this OpcNodeAttribute´1.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).
Compares the current OpcNodeAttribute´1 with the other
.
C#
public override int CompareTo(OpcValue<T> other)
Parameters
The OpcNodeAttribute´1 to compare with this OpcNodeAttribute´1.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).
Determines whether the specified other
is equal to this OpcNodeAttribute´1.
C#
public override bool Equals(object other)
Parameters
other
Object
The OpcNodeAttribute´1 to compare to the current OpcNodeAttribute´1.
Returns
The value true if the specified OpcNodeAttribute´1 is equal to the current OpcNodeAttribute´1; otherwise the value false.
Determines whether the specified other
is equal to this OpcNodeAttribute´1.
C#
public virtual bool Equals(OpcNodeAttribute<T> other)
Parameters
other
OpcNodeAttribute`1
The OpcNodeAttribute´1 to compare to the current OpcNodeAttribute´1.
Returns
The value true if the specified OpcNodeAttribute´1 is equal to the current OpcNodeAttribute´1; otherwise the value false.
Determines whether the specified other
is equal to this OpcNodeAttribute´1.
C#
public override bool Equals(OpcValue other)
Parameters
other
OpcValue
The OpcNodeAttribute´1 to compare to the current OpcNodeAttribute´1.
Returns
The value true if the specified OpcNodeAttribute´1 is equal to the current OpcNodeAttribute´1; otherwise the value false.
Determines whether the specified other
is equal to this OpcNodeAttribute´1.
C#
public override bool Equals(OpcValue<T> other)
Parameters
The OpcNodeAttribute´1 to compare to the current OpcNodeAttribute´1.
Returns
The value true if the specified OpcNodeAttribute´1 is equal to the current OpcNodeAttribute´1; otherwise the value false.
Retrieves a hash code for this OpcNodeAttribute´1.
C#
public override int GetHashCode()
Returns
An Int32 that contains the hash code for the OpcNodeAttribute´1.
Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.
C#
public override string ToString(string format, IFormatProvider formatProvider)
Parameters
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
The format
is invalid or not supported.
Returns a value indicating whether two instance of OpcNodeAttribute´1 are equal.
C#
public static bool operator ==(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Converts a OpcNodeAttribute´1 to an DataValue object.
C#
[CLSCompliant(false)] public static explicit operator DataValue(OpcNodeAttribute<T> value)
Determines whether the first specified OpcNodeAttribute´1 object is greater than the second specified OpcNodeAttribute´1 object.
C#
public static bool operator>(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Determines whether the first specified OpcNodeAttribute´1 object is greater than or equal to the second specified OpcNodeAttribute´1 object.
C#
public static bool operator >=(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Returns a value indicating whether two instances of OpcNodeAttribute´1 are not equal.
C#
public static bool operator !=(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Determines whether the first specified OpcNodeAttribute´1 object is less than the second specified OpcNodeAttribute´1 object.
C#
public static bool operator <(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Exceptions
The left
is a null reference (Nothing in Visual Basic).
Determines whether the first specified OpcNodeAttribute´1 object is less than or equal to the second OpcNodeAttribute´1 object.
C#
public static bool operator <=(OpcNodeAttribute<T> left, OpcNodeAttribute<T> right)
Exceptions
The left
is a null reference (Nothing in Visual Basic).