WebBaseEvent.EventTimeUtc 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 time when the event was raised.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public DateTime EventTimeUtc { get; }

Property Value

Type: System.DateTime

The time of the event in Coordinated Universal Time (UTC) format.

The following code example shows how to get the EventTimeUtc value.

// Gets the event time.
public DateTime GetEventTimeUtc()
{
    // Get the event source.
    DateTime eTime = EventTimeUtc;
    return eTime;
}

.NET Framework
Available since 2.0
Return to top
Show: