共用方式為


WebBaseEvent.EventTimeUtc 屬性

定義

取得事件引發的時間。

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

屬性值

DateTime

Coordinated Universal Time (UTC) 格式的事件時間。

範例

下列程式碼範例示範如何取得 EventTimeUtc 值。

// 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

適用於