OPC Studio User's Guide and Reference
Time Property (AEEventData)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEEventData Class : Time Property
Time of the event occurrence - for conditions, time that the condition transitioned into the new state or sub-condition. In UTC.
Syntax
'Declaration
 
Public Property Time As Date
'Usage
 
Dim instance As AEEventData
Dim value As Date
 
instance.Time = value
 
value = instance.Time
public DateTime Time {get; set;}
public:
property DateTime Time {
   DateTime get();
   void set (    DateTime value);
}
Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

For example, if the event notification is for acknowledgment of a condition, this would be the time that the condition became acknowledged.

If you are using VBA in Excel, beware that it reduces the precision of date/times from OLE Automation to seconds. In order to achieve milliseconds precision from VBA in Excel, use the TimeDouble property instead.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also