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

EventMetadata

public sealed class EventMetadata
Contains the metadata (properties and settings) for an event that is defined in an event provider.
using System.Collections.Generic; namespace System.Diagnostics.Eventing.Reader { public sealed class EventMetadata { public string Description { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public long Id { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IEnumerable<EventKeyword> Keywords { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLevel Level { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogLink LogLink { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventOpcode Opcode { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventTask Task { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string Template { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public byte Version { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } internal EventMetadata() { } } }