ActivityEvent 結構

定義

代表包含名稱與時間戳記以及選用標籤清單的事件。Represents an event containing a name and a timestamp, as well as an optional list of tags.

public value class ActivityEvent
public struct ActivityEvent
type ActivityEvent = struct
Public Structure ActivityEvent
繼承
ActivityEvent

建構函式

ActivityEvent(String)

使用指定的名稱與目前時間作為事件時間戳記,將新的活動事件執行個體初始化。Initializes a new activity event instance using the specified name and the current time as the event timestamp.

ActivityEvent(String, DateTimeOffset, ActivityTagsCollection)

使用指定的名稱、時間戳記與標籤,將新的活動事件執行個體初始化。Initializes a new activity event instance using the specified name, timestamp and tags.

屬性

Name

取得活動事件名稱。Gets the activity event name.

Tags

取得與事件相關聯之標籤的集合。Gets the collection of tags associated with the event.

Timestamp

取得活動事件時間戳記。Gets the activity event timestamp.

適用於