PrintingPermission 构造函数

定义

初始化 PrintingPermission 类的新实例。

重载

PrintingPermission(PrintingPermissionLevel)

使用指定的打印访问级别初始化 PrintingPermission 类的新实例。

PrintingPermission(PermissionState)

根据指定,使用完全限制或不受限制的访问初始化 PrintingPermission 类的新实例。

PrintingPermission(PrintingPermissionLevel)

Source:
PrintingPermission.cs
Source:
PrintingPermission.cs
Source:
PrintingPermission.cs

使用指定的打印访问级别初始化 PrintingPermission 类的新实例。

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)

参数

另请参阅

适用于

PrintingPermission(PermissionState)

Source:
PrintingPermission.cs
Source:
PrintingPermission.cs
Source:
PrintingPermission.cs

根据指定,使用完全限制或不受限制的访问初始化 PrintingPermission 类的新实例。

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)

参数

state
PermissionState

PermissionState 值之一。

例外

state 不是有效的 PermissionState

注解

此构造函数创建完全受限 (None) 或 Unrestricted 权限的形式。

适用于