Export (0) Print
Expand All

EventWrittenEventArgs Class

.NET Framework 4.6 and 4.5

Provides data for the EventListener.OnEventWritten callback.


Namespace:  System.Diagnostics.Tracing
Assemblies:   System.Diagnostics.Tracing (in System.Diagnostics.Tracing.dll)
  mscorlib (in mscorlib.dll)

public class EventWrittenEventArgs : EventArgs

The EventWrittenEventArgs type exposes the following members.

Public propertyActivityId[Supported in the .NET Framework 4.5.1 and later versions] Gets the activity ID on the thread that the event was written to.
Public propertyChannelGets the channel for the event.
Public propertyEventIdGets the event identifier.
Public propertyEventNameGets the name of the event.
Public propertyEventSourceGets the event source object.
Public propertyKeywordsGets the keywords for the event.
Public propertyLevelGets the level of the event.
Public propertyMessageGets the message for the event.
Public propertyOpcodeGets the operation code for the event.
Public propertyPayloadGets the payload for the event.
Public propertyPayloadNamesReturns a list of strings that represent the property names of the event.
Public propertyRelatedActivityId[Supported in the .NET Framework 4.5.1 and later versions] Gets the identifier of an activity that is related to the activity represented by the current instance.
Public propertyTagsReturns the tags specified in the call to the Write method.
Public propertyTaskGets the task for the event.
Public propertyVersionGets the version of the event.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft