System.Diagnostics.EventLogEntry.TimeGenerated Property

Gets the local time at which this event was generated.

Syntax

[System.Diagnostics.MonitoringDescription("Generation time of this event entry.")]
public DateTime TimeGenerated { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This member holds the time that an event was generated. This might not be the same as the time when the event information was written to the event log. For the latter, read the EventLogEntry.TimeWritten property.

There is usually a lag between the time that an event is generated and the time it is logged. It is more important to know when the event was generated, unless you want to see if there is a significant lag in logging. That can happen if your log files are on a different server and you are experiencing a bottleneck.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0