Gets the time at which this event was generated, in local time.
[Visual Basic] Public ReadOnly Property TimeGenerated As DateTime [C#] public DateTime TimeGenerated {get;} [C++] public: __property DateTime get_TimeGenerated(); [JScript] public function get TimeGenerated() : DateTime;
A DateTime that represents the time at which this event was generated.
TimeGenerated has millisecond accuracy.
This method holds the time that an event was generated. This may not be the same as the time that the event information was written to the event log. For the latter, use TimeWritten.
EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace | TimeWritten