Build 1.01.318.0

[This is preliminary documentation and is subject to change.]

A class that stores the value of variable with an optional status code and timestamps.

Namespace: Opc.Ua
Assembly: Opc.Ua.Core (in Opc.Ua.Core.dll) Version: 1.1.318.1 (1.01.318.1)

Syntax

C#
public class DataValue : IFormattable, ICloneable
Visual Basic
Public Class DataValue _
	Implements IFormattable, ICloneable
Visual C++
public ref class DataValue : IFormattable, 
	ICloneable

Remarks

This object relates to the OPC UA Specifications Part 6: Mappings, section 6.2.2.16 titled DataValue.

This object is essentially a place-holder for the following:


Examples

CopyC#
//define a new DataValue first where:
//  (a) the value is a string, which is "abc123"
//  (b) the statuscode is 0 (zero)
//  (c) the timestamp is 'now'
DataValue dv = new DataValue(new Variant("abc123"), new StatusCode(0), DateTime.Now);
Copy 
'define a new DataValue first where:
'  (a) the value is a string, which is "abc123"
'  (b) the statuscode is 0 (zero)
'  (c) the timestamp is 'now'
Dim dv As DataValue = New DataValue(New Variant("abc123"), New StatusCode(0), DateTime.Now);

Inheritance Hierarchy

System..::..Object
  Opc.Ua..::..DataValue

See Also