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

EventLogPropertySelector

Contains an array of strings that represent XPath queries for elements in the XML representation of an event, which is based on the Event Schema. The queries in this object are used to extract values from the event.
public EventLogPropertySelector(IEnumerable<string> propertyQueries)

Initializes a new EventLogPropertySelector class instance.

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.