WebBaseEvent.EventTimeUtc Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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