WebBaseEvent.EventTimeUtc Egenskap

Definition

Hämtar den tid då händelsen skapades.

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

Egenskapsvärde

Tidpunkten för händelsen i UTC-format (Coordinated Universal Time).

Exempel

Följande kodexempel visar hur du EventTimeUtc hämtar värdet.

// Gets the event time.
public DateTime GetEventTimeUtc()
{
    // Get the event source.
    DateTime eTime = EventTimeUtc;
    return eTime;
}
' Gets the event time.
Public Function GetEventTimeUtc() As DateTime
    ' Get the event source.
    Dim eTime As DateTime = EventTimeUtc
    Return eTime

End Function 'GetEventTimeUtc

Gäller för