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

EventInstance

public class EventInstance
Represents language-neutral information for an event log entry.
public int CategoryId { get; set; }

Gets or sets the resource identifier that specifies the application-defined category of the event entry.

public EventLogEntryType EntryType { get; set; }

Gets or sets the event type of the event log entry.

public long InstanceId { get; set; }

Gets or sets the resource identifier that designates the message text of the event entry.

public EventInstance(long instanceId, int categoryId)

Initializes a new instance of the EventInstance class using the specified resource identifiers for the localized message and category text of the event entry.

public EventInstance(long instanceId, int categoryId, EventLogEntryType entryType)

Initializes a new instance of the EventInstance class using the specified resource identifiers for the localized message and category text of the event entry and the specified event log entry type.