Share via

TraceEventCache.DateTime Property


Gets the date and time at which the event trace occurred.

 property DateTime DateTime { DateTime get(); };
public DateTime DateTime { get; }
member this.DateTime : DateTime
Public ReadOnly Property DateTime As DateTime

Property Value

A DateTime structure whose value is a date and time expressed in Coordinated Universal Time (UTC).


The first time the property is accessed in an instance of the TraceEventCache class, the current time is returned. Subsequent queries of this property in that instance return that same DateTime value, allowing it to be used as a timestamp.

Applies to