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

EventLogRecord

public class EventLogRecord : EventRecord
Contains the properties of an event instance for an event that is received from an EventLogReader object. The event properties provide information about the event such as the name of the computer where the event was logged and the time that the event was created.
using System.Collections.Generic; using System.Security.Principal; namespace System.Diagnostics.Eventing.Reader { public class EventLogRecord : EventRecord { public override Guid? ActivityId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override EventBookmark Bookmark { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string ContainerLog { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override int Id { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override long? Keywords { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override IEnumerable<string> KeywordsDisplayNames { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override byte? Level { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string LevelDisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string LogName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string MachineName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IEnumerable<int> MatchedQueryIds { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override short? Opcode { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string OpcodeDisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override int? ProcessId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override IList<EventProperty> Properties { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override Guid? ProviderId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string ProviderName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override int? Qualifiers { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override long? RecordId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override Guid? RelatedActivityId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override int? Task { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override string TaskDisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override int? ThreadId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override DateTime? TimeCreated { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override SecurityIdentifier UserId { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public override byte? Version { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } internal EventLogRecord() { } protected override void Dispose(bool disposing) { } public override string FormatDescription() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public override string FormatDescription(IEnumerable<object> values) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public IList<object> GetPropertyValues(EventLogPropertySelector propertySelector) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public override string ToXml() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } }