You are creating a Windows Forms application by using the .NET Framework 3.5.
The application is configured to use role-based security. You need to ensure that users can print reports only by selecting a printer from the printer dialog box.
You want to achieve this goal by using the minimum level of permission.
Which code segment should you use?
A.
[System.Drawing.Printing.PrintingPermission (System.Security.Permissions.SecurityAction.Demand, Level=System.Drawing.Printing.PrintingPermissionLevel.AllPrinting)]
B.
[System.Drawing.Printing.PrintingPermission (System.Security.Permissions.SecurityAction.Demand, Level=System.Drawing.Printing.PrintingPermissionLevel.NoPrinting)]
C.
[System.Drawing.Printing.PrintingPermission (System.Security.Permissions.SecurityAction.Demand, Level=System.Drawing.Printing.PrintingPermissionLevel.DefaultPrinting)]
D.
[System.Drawing.Printing.PrintingPermission (System.Security.Permissions.SecurityAction.Demand, Level=System.Drawing.Printing.PrintingPermissionLevel.SafePrinting)]