PrintingPermission Constructors
Definition
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.
Overloads
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. |
PrintingPermission(PrintingPermissionLevel)
- 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
PrintingPermission(PermissionState)
- 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.