PrintingPermission Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the PrintingPermission class.
PrintingPermission(PrintingPermissionLevel) |
Initializes a new instance of the PrintingPermission class with the level of printing access specified. |
PrintingPermission(PermissionState) |
Initializes a new instance of the PrintingPermission class with either fully restricted or unrestricted access, as specified. |
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
Initializes a new instance of the PrintingPermission class with the level of printing access specified.
public:
PrintingPermission(System::Drawing::Printing::PrintingPermissionLevel printingLevel);
public PrintingPermission(System.Drawing.Printing.PrintingPermissionLevel printingLevel);
new System.Drawing.Printing.PrintingPermission : System.Drawing.Printing.PrintingPermissionLevel -> System.Drawing.Printing.PrintingPermission
Public Sub New (printingLevel As PrintingPermissionLevel)
Parameters
- printingLevel
- PrintingPermissionLevel
One of the PrintingPermissionLevel values.
See also
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
- Source:
- PrintingPermission.cs
Initializes a new instance of the PrintingPermission class with either fully restricted or unrestricted access, as specified.
public:
PrintingPermission(System::Security::Permissions::PermissionState state);
public PrintingPermission(System.Security.Permissions.PermissionState state);
new System.Drawing.Printing.PrintingPermission : System.Security.Permissions.PermissionState -> System.Drawing.Printing.PrintingPermission
Public Sub New (state As PermissionState)
Parameters
- state
- PermissionState
One of the PermissionState values.
Exceptions
state
is not a valid PermissionState.
Remarks
This constructor creates either the fully restricted (None
) or the Unrestricted
form of the permission.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: