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

PrintingPermission

Controls access to printers. This class cannot be inherited.
public PrintingPermissionLevel Level { get; set; }

Gets or sets the code's level of printing access.

Initializes a new instance of the PrintingPermission class with the level of printing access specified.

Initializes a new instance of the PrintingPermission class with either fully restricted or unrestricted access, as specified.

public bool IsUnrestricted()

Gets a value indicating whether the permission is unrestricted.