Edit

Share via


EventWrittenEventArgs Class

Definition

Provides data for the OnEventWritten(EventWrittenEventArgs) callback.

public ref class EventWrittenEventArgs : EventArgs
public class EventWrittenEventArgs : EventArgs
type EventWrittenEventArgs = class
    inherit EventArgs
Public Class EventWrittenEventArgs
Inherits EventArgs
Inheritance
EventWrittenEventArgs

Remarks

For more information about this API, see Supplemental API remarks for EventWrittenEventArgs.

Properties

ActivityId

Gets the activity ID on the thread that the event was written to.

Channel

Gets the channel for the event.

EventId

Gets the event identifier.

EventName

Gets the name of the event.

EventSource

Gets the event source object.

Keywords

Gets the keywords for the event.

Level

Gets the level of the event.

Message

Gets the message for the event.

Opcode

Gets the operation code for the event.

OSThreadId

Gets the thread identifier for the OS thread that wrote the event. (.NET Core 2.2 and later only.)

Payload

Gets the payload for the event.

PayloadNames

Returns a list of strings that represent the property names of the event.

RelatedActivityId

Gets the identifier of an activity that is related to the activity represented by the current instance.

Tags

Returns the tags specified in the call to the Write(String, EventSourceOptions) method.

Task

Gets the task for the event.

TimeStamp

Gets the time that the event was originally generated as a DateTime timestamp. (.NET Core 2.2 and later only.)

Version

Gets the version of the event.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to