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
| Overload | Description |
|---|---|
| OpcVariableValue( | Initializes a new instance of the OpcVariableValue<value specified. |
| OpcVariableValue( | Initializes a new instance of the OpcVariableValue<value and timestamp specified. |
| OpcVariableValue( | Initializes a new instance of the OpcVariableValue<value, timestamp and status specified. |
| OpcVariableValue( | Initializes a new instance of the OpcVariableValue<value, timestamp and statusCode specified. |
OpcVariableValue(T)
Initializes a new instance of the OpcVariableValue<T> class using the value specified.
public OpcVariableValue(T value)Public Sub New(value As T)Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value of the variable value represented. |
OpcVariableValue(T, DateTime)
Initializes a new instance of the OpcVariableValue<T> class using the value and timestamp specified.
public OpcVariableValue(T value, DateTime timestamp)Public Sub New(value As T, timestamp As Date)Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value of the variable value represented. |
timestamp | DateTime | The 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.
public OpcVariableValue(T value, DateTime timestamp, OpcStatus status)Public Sub New(value As T, timestamp As Date, status As OpcStatus)Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value of the variable value represented. |
timestamp | DateTime | The time stamp of the variable value. |
status | OpcStatus | The 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.
[CLSCompliant(false)]
public OpcVariableValue(T value, DateTime timestamp, OpcStatusCode statusCode)<CLSCompliant(False)>
Public Sub New(value As T, timestamp As Date, statusCode As OpcStatusCode)Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value of the variable value represented. |
timestamp | DateTime | The time stamp of the variable value. |
statusCode | OpcStatusCode | The OpcStatusCode form that the OpcStatus associated with the variable value is derived. |
Properties
Status
Gets the status information associated with the variable value.
public OpcStatus Status { get; }Public ReadOnly Property Status As OpcStatusProperty value
An instance of the OpcStatus class containing the status information associated with the variable value.
Timestamp
Gets the time stamp of the variable value.
public DateTime? Timestamp { get; }Public ReadOnly Property Timestamp As Date?Property value
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
Returns a string that represents the current OpcVariableValue<T>.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string that represents the current OpcVariableValue<T> including the Status, Timestamp (if available), Attribute and Value.
Overrides

