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

ProviderMetadata

public class ProviderMetadata : IDisposable
Contains static information about an event provider, such as the name and id of the provider, and the collection of events defined in the provider.
using System.Collections.Generic; using System.Globalization; namespace System.Diagnostics.Eventing.Reader { public class ProviderMetadata : IDisposable { public string DisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IEnumerable<EventMetadata> Events { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public Uri HelpLink { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public Guid Id { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventKeyword> Keywords { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventLevel> Levels { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventLogLink> LogLinks { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string MessageFilePath { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string Name { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventOpcode> Opcodes { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string ParameterFilePath { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string ResourceFilePath { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventTask> Tasks { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public ProviderMetadata(string providerName) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public ProviderMetadata(string providerName, EventLogSession session, CultureInfo targetCultureInfo) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Dispose() { } protected virtual void Dispose(bool disposing) { } } }