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