<PackageReference Include="System.Security.Permissions" Version="4.6.0-preview4.19212.13" />

PrintingPermissionLevel

Specifies the type of printing that code is allowed to do.

Provides full access to all printers.

Provides printing programmatically to the default printer, along with safe printing through semirestricted dialog box. DefaultPrinting is a subset of AllPrinting.

Prevents access to printers. NoPrinting is a subset of SafePrinting.

Provides printing only from a restricted dialog box. SafePrinting is a subset of DefaultPrinting.