EventTask Class

 

Contains an event task that is defined in an event provider. The task identifies a portion of an application or a component that publishes an event. A task is a 16-bit value with 16 top values reserved.

Namespace:   System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

System.Object
  System.Diagnostics.Eventing.Reader.EventTask

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public sealed class EventTask

NameDescription
System_CAPS_pubpropertyDisplayName

Gets the localized name for the event task.

System_CAPS_pubpropertyEventGuid

Gets the event globally unique identifier (GUID) associated with the task.

System_CAPS_pubpropertyName

Gets the non-localized name of the event task.

System_CAPS_pubpropertyValue

Gets the numeric value associated with the task.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This class cannot be instantiated. A ProviderMetadata object defies a list of EventTask objects, one for each task defined in the provider. The standard task values and their meanings are defined in the StandardEventLevel enumeration.

.NET Framework
Available since 3.5

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

System.Diagnostics.Eventing.Reader Namespace
Technology Summary for Reading and Managing Event Logs
Event Log Scenarios

Return to top
Show: