<PackageReference Include="System.Diagnostics.EventLog" Version="4.7.0" />

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

Gets the localized name of the event provider.

public IEnumerable<EventMetadata> Events { get; }

Gets an enumerable collection of EventMetadata objects, each of which represents an event that is defined in the provider.

public Uri HelpLink { get; }

Gets the base of the URL used to form help requests for the events in this event provider.

public Guid Id { get; }

Gets the globally unique identifier (GUID) for the event provider.

public IList<EventKeyword> Keywords { get; }

Gets an enumerable collection of EventKeyword objects, each of which represent an event keyword that is defined in the event provider.

public IList<EventLevel> Levels { get; }

Gets an enumerable collection of EventLevel objects, each of which represent a level that is defined in the event provider.

public IList<EventLogLink> LogLinks { get; }

Gets an enumerable collection of EventLogLink objects, each of which represent a link to an event log that is used by the event provider.

public string MessageFilePath { get; }

Gets the path of the file that contains the message table resource that has the strings associated with the provider metadata.

public string Name { get; }

Gets the unique name of the event provider.

public IList<EventOpcode> Opcodes { get; }

Gets an enumerable collection of EventOpcode objects, each of which represent an opcode that is defined in the event provider.

public string ParameterFilePath { get; }

Gets the path of the file that contains the message table resource that has the strings used for parameter substitutions in event descriptions.

public string ResourceFilePath { get; }

Gets the path to the file that contains the metadata associated with the provider.

public IList<EventTask> Tasks { get; }

Gets an enumerable collection of EventTask objects, each of which represent a task that is defined in the event provider.

public ProviderMetadata(string providerName)

Initializes a new instance of the ProviderMetadata class by specifying the name of the provider that you want to retrieve information about.

public ProviderMetadata(string providerName, EventLogSession session, CultureInfo targetCultureInfo)

Initializes a new instance of the ProviderMetadata class by specifying the name of the provider that you want to retrieve information about, the event log service that the provider is registered with, and the language that you want to return the information in.

public void Dispose()

Releases all the resources used by this object.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by this object, and optionally releases the managed resources.