Skip to content

Reference

OpcVariableValue Members

Represents the immutable value of a variable.

Reference

OpcVariableValue<T> Members ​

Type
OpcVariableValue<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcAttributeValue<T>.

Constructors ​

OpcVariableValue ​

4 overloads

OverloadDescription
OpcVariableValue(T)Initializes a new instance of the OpcVariableValue<T> class using the value specified.
OpcVariableValue(T, DateTime)Initializes a new instance of the OpcVariableValue<T> class using the value and timestamp specified.
OpcVariableValue(T, DateTime, OpcStatus)Initializes a new instance of the OpcVariableValue<T> class using the value, timestamp and status specified.
OpcVariableValue(T, DateTime, OpcStatusCode)Initializes a new instance of the OpcVariableValue<T> class using the value, timestamp and statusCode specified.

OpcVariableValue(T) ​

Initializes a new instance of the OpcVariableValue<T> class using the value specified.

csharp
public OpcVariableValue(T value)
vbnet
Public Sub New(value As T)

Parameters

NameTypeDescription
valueTThe value of the variable value represented.

OpcVariableValue(T, DateTime) ​

Initializes a new instance of the OpcVariableValue<T> class using the value and timestamp specified.

csharp
public OpcVariableValue(T value, DateTime timestamp)
vbnet
Public Sub New(value As T, timestamp As Date)

Parameters

NameTypeDescription
valueTThe value of the variable value represented.
timestampDateTimeThe time stamp of the variable value.

OpcVariableValue(T, DateTime, OpcStatus) ​

Initializes a new instance of the OpcVariableValue<T> class using the value, timestamp and status specified.

csharp
public OpcVariableValue(T value, DateTime timestamp, OpcStatus status)
vbnet
Public Sub New(value As T, timestamp As Date, status As OpcStatus)

Parameters

NameTypeDescription
valueTThe value of the variable value represented.
timestampDateTimeThe time stamp of the variable value.
statusOpcStatusThe status associated with the variable value.

OpcVariableValue(T, DateTime, OpcStatusCode) ​

Initializes a new instance of the OpcVariableValue<T> class using the value, timestamp and statusCode specified.

csharp
[CLSCompliant(false)]
public OpcVariableValue(T value, DateTime timestamp, OpcStatusCode statusCode)
vbnet
<CLSCompliant(False)>
Public Sub New(value As T, timestamp As Date, statusCode As OpcStatusCode)

Parameters

NameTypeDescription
valueTThe value of the variable value represented.
timestampDateTimeThe time stamp of the variable value.
statusCodeOpcStatusCodeThe OpcStatusCode form that the OpcStatus associated with the variable value is derived.

Properties ​

Status ​

Gets the status information associated with the variable value.

csharp
public OpcStatus Status { get; }
vbnet
Public ReadOnly Property Status As OpcStatus

Property value

OpcStatus

An instance of the OpcStatus class containing the status information associated with the variable value.

Timestamp ​

Gets the time stamp of the variable value.

csharp
public DateTime? Timestamp { get; }
vbnet
Public ReadOnly Property Timestamp As Date?

Property value

Nullable<DateTime>

The DateTime identifying the time stamp of the value or a null reference (Nothing in Visual Basic) in case there is no time stamp associated with the variable value.

Methods ​

ToString ​

override

Returns a string that represents the current OpcVariableValue<T>.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string that represents the current OpcVariableValue<T> including the Status, Timestamp (if available), Attribute and Value.

Overrides

ToString()