<PackageReference Include="System.Security.Permissions" Version="9.0.5" />

EventLogPermission

Controls code access permissions for event logging.

Gets the collection of permission entries for this permissions request.

Initializes a new instance of the EventLogPermission class.

public EventLogPermission(EventLogPermissionAccess permissionAccess, string machineName)

Initializes a new instance of the EventLogPermission class with the specified access levels and the name of the computer to use.

public EventLogPermission(EventLogPermissionEntry[] permissionAccessEntries)

Initializes a new instance of the EventLogPermission class with the specified permission entries.

Initializes a new instance of the EventLogPermission class with the specified permission state.