QuickOPC User's Guide and Reference
ServerTimestamp Property (UABaseVariable<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Modelling Namespace > UABaseVariable<TValue,TAttribute> Class : ServerTimestamp Property
Contains the server timestamp. In UTC.
Syntax
'Declaration
 
<MappingTagAttribute("OpcLabs.EasyOpc.UA.Modelling.VariableValue")>
<UADataAttribute(Kind=UADataMappingKind.ErrorCode Or  _
    UADataMappingKind.Exception Or  _
    UADataMappingKind.ErrorMessage Or  _
    UADataMappingKind.StatusInfo Or  _
    UADataMappingKind.AttributeData Or  _
    UADataMappingKind.Value Or  _
    UADataMappingKind.ServerTimestamp, 
   Operations=UADataMappingOperations.Read Or  _
    UADataMappingOperations.Subscribe Or  _
    UADataMappingOperations.ReadAndSubscribe)>
Public Property ServerTimestamp As Date
'Usage
 
Dim instance As UABaseVariable(Of TValue,TAttribute)
Dim value As Date
 
instance.ServerTimestamp = value
 
value = instance.ServerTimestamp
[MappingTag("OpcLabs.EasyOpc.UA.Modelling.VariableValue")]
[UAData(Kind=UADataMappingKind.ErrorCode | 
    UADataMappingKind.Exception | 
    UADataMappingKind.ErrorMessage | 
    UADataMappingKind.StatusInfo | 
    UADataMappingKind.AttributeData | 
    UADataMappingKind.Value | 
    UADataMappingKind.ServerTimestamp, 
   Operations=UADataMappingOperations.Read | 
    UADataMappingOperations.Subscribe | 
    UADataMappingOperations.ReadAndSubscribe)]
public DateTime ServerTimestamp {get; set;}
[MappingTag("OpcLabs.EasyOpc.UA.Modelling.VariableValue")]
[UAData(Kind=UADataMappingKind.ErrorCode | 
    UADataMappingKind.Exception | 
    UADataMappingKind.ErrorMessage | 
    UADataMappingKind.StatusInfo | 
    UADataMappingKind.AttributeData | 
    UADataMappingKind.Value | 
    UADataMappingKind.ServerTimestamp, 
   Operations=UADataMappingOperations.Read | 
    UADataMappingOperations.Subscribe | 
    UADataMappingOperations.ReadAndSubscribe)]
public:
property DateTime ServerTimestamp {
   DateTime get();
   void set (    DateTime value);
}
Remarks

When writing, be aware that writing the server timestamp is not supported by some servers, including the OPC Foundation sample server.

Requirements

Target Platforms: Windows 7 with SP1, Windows Server 2008 R2 with SP1

See Also

Reference

UABaseVariable<TValue,TAttribute> Class
UABaseVariable<TValue,TAttribute> Members