WebBaseEvent.EventTimeUtc 属性

定义

获取引发事件的时间。

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

属性值

DateTime

事件的时间,格式为协调通用时间 (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

适用于