TraceEventCache.DateTime Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public DateTime DateTime { get; }

Property Value

Type: System.DateTime

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.

.NET Framework
Available since 2.0
Return to top
Show: