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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기