<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-rc.2.24473.5" />

EventTask

public sealed class EventTask
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.
public string DisplayName { get; }

Gets the localized name for the event task.

public Guid EventGuid { get; }

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

public string Name { get; }

Gets the non-localized name of the event task.

public int Value { get; }

Gets the numeric value associated with the task.