Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Diagnostics.​Tracing.​EventWrittenEventArgs
Assembly: System.Diagnostics.Tracing
Inheritance: object → EventArgs → EventWrittenEventArgs
Provides data for the <see cref="M:System.Diagnostics.Tracing.EventListener.OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs)" /> callback.
Properties
public
Guid
ActivityId
Gets the activity ID on the thread that the event was written to.
public
EventChannel
Channel
Gets the channel for the event.
public
int
EventId
Gets the event identifier.
public
string
EventName
Gets the name of the event.
public
EventSource
EventSource
Gets the event source object.
public
EventKeywords
Keywords
Gets the keywords for the event.
public
EventLevel
Level
Gets the level of the event.
public
string
Message
Gets the message for the event.
public
EventOpcode
Opcode
Gets the operation code for the event.
public
long
OSThreadId
Gets the thread identifier for the OS thread that wrote the event. (.NET Core 2.2 and later only.)
Gets the payload for the event.
PayloadNames
Returns a list of strings that represent the property names of the event.
public
Guid
RelatedActivityId
Gets the identifier of an activity that is related to the activity represented by the current instance.
public
EventTags
Tags
Returns the tags specified in the call to the <see cref="M:System.Diagnostics.Tracing.EventSource.Write(System.String,System.Diagnostics.Tracing.EventSourceOptions)" /> method.
public
EventTask
Task
Gets the task for the event.
public
DateTime
TimeStamp
Gets the time that the event was originally generated as a <see cref="T:System.DateTime" /> timestamp. (.NET Core 2.2 and later only.)
public
byte
Version
Gets the version of the event.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object