<PackageReference Include="System.Diagnostics.EventLog" Version="5.0.0-preview.5.20278.1" />

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.
namespace System.Diagnostics.Eventing.Reader { public sealed class EventTask { public string DisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public Guid EventGuid { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string Name { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public int Value { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } internal EventTask() { } } }