<PackageReference Include="System.Security.Permissions" Version="5.0.0-preview.1.20120.5" />

EventLogPermissionEntry

Defines the smallest unit of a code access security permission that is set for an EventLog.
public string MachineName { get; }

Gets the name of the computer on which to read or write events.

Gets the permission access levels used in the permissions request.

public EventLogPermissionEntry(EventLogPermissionAccess permissionAccess, string machineName)

Initializes a new instance of the EventLogPermissionEntry class.