ActivityEvent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
ActivityEvent(String)
- Source:
- ActivityEvent.cs
- Source:
- ActivityEvent.cs
- Source:
- ActivityEvent.cs
Initializes a new activity event instance using the specified name and the current time as the event timestamp.
public:
ActivityEvent(System::String ^ name);
public ActivityEvent (string name);
new System.Diagnostics.ActivityEvent : string -> System.Diagnostics.ActivityEvent
Public Sub New (name As String)
Parameters
- name
- String
The event name.
Applies to
ActivityEvent(String, DateTimeOffset, ActivityTagsCollection)
- Source:
- ActivityEvent.cs
- Source:
- ActivityEvent.cs
- Source:
- ActivityEvent.cs
Initializes a new activity event instance using the specified name, timestamp and tags.
public ActivityEvent (string name, DateTimeOffset timestamp = default, System.Diagnostics.ActivityTagsCollection? tags = default);
new System.Diagnostics.ActivityEvent : string * DateTimeOffset * System.Diagnostics.ActivityTagsCollection -> System.Diagnostics.ActivityEvent
Public Sub New (name As String, Optional timestamp As DateTimeOffset = Nothing, Optional tags As ActivityTagsCollection = Nothing)
Parameters
- name
- String
The event name.
- timestamp
- DateTimeOffset
The event timestamp. Timestamp must only be used for the events that happened in the past, not at the moment of this call.
The event tags.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈