Skip to content

Reference

OpcValue Class

Stores a value optionally associated with status and timestamp information.

Reference

OpcValue Class ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcValue Members
Also in
Opc.UaFx.Client

Stores a value optionally associated with status and timestamp information.

Syntax ​

csharp
public class OpcValue
vbnet
Public Class OpcValue

Inheritance ​

Object → OpcValue

Implements ​

Derived types ​

Constructors ​

NameDescription
OpcValue7 overloadsInitializes a new instance of the OpcValue class using the value.

Properties ​

NameDescription
DataTypeGets the type of value represented.
DataTypeIdvirtualGets the node identifier of the DataType of the value represented.
RankGets the rank of the value represented.
ServerPicosecondsGets or sets the difference between a high resolution timestamp with a resolution of 10 picoseconds and the ServerTimestamp which only has a 100 ns resolution.
ServerTimestampGets or sets the timestamp at which the server recorded the value.
SourcePicosecondsGets or sets the difference between a high resolution timestamp with a resolution of 10 picoseconds and the SourceTimestamp which only has a 100 ns resolution.
SourceTimestampGets or sets the timestamp of the source from that the value originates.
StatusGets the status information which defines the servers ability to access/provide the value.
ValueGets or sets the value represented.

Methods ​

NameDescription
AsRetrieves the underlying Value as the type specified by T.
AsValuesince v2.8Retrieves a new OpcValue<T> instance its Value is of the type specified by T.
CompareTovirtual · 2 overloadsCompares the current OpcValue with the other.
Equals2 overloadsDetermines whether the specified other is equal to this OpcValue.
GetHashCodeoverrideRetrieves a hash code for this OpcValue.
ToString2 overloadsConverts the value of this instance to its equivalent string representation.

Operators ​

NameDescription
EqualitystaticReturns a value indicating whether two instance of OpcValue are equal.
ExplicitstaticConverts a OpcValue to an DataValue object.
GreaterThanstaticDetermines whether the first specified OpcValue object is greater than the second specified OpcValue object.
GreaterThanOrEqualstaticDetermines whether the first specified OpcValue object is greater than or equal to the second specified OpcValue object.
Implicitstatic · 29 overloadsConverts a bool to an OpcValue object.
InequalitystaticReturns a value indicating whether two instances of OpcValue are not equal.
LessThanstaticDetermines whether the first specified OpcValue object is less than the second specified OpcValue object.
LessThanOrEqualstaticDetermines whether the first specified OpcValue object is less than or equal to the second OpcValue object.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59