PrintQueue 构造函数

定义

初始化 PrintQueue 类的新实例。Initializes a new instance of the PrintQueue class.

重载

PrintQueue(PrintServer, String)

使用指定的 PrintQueue 和队列名称初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer and queue name.

PrintQueue(PrintServer, String, Int32)

使用指定 PrintQueue、队列名称和打印架构版本初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and print schema version.

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

使用指定的 PrintQueue、队列名称和要初始化的 PrintServer 值的数组初始化 PrintQueueIndexedProperty 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and array of PrintQueueIndexedProperty values to initialize.

PrintQueue(PrintServer, String, PrintSystemDesiredAccess)

使用指定 PrintQueue、队列名称和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and desired access.

PrintQueue(PrintServer, String, String[])

使用指定 PrintQueue、队列名称和要初始化的属性名称的数组初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and array of property names to initialize.

PrintQueue(PrintServer, String, Int32, PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、打印架构版本和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, print schema version, and desired access.

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[], PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、要初始化的 PrintServer 值的数组和所需的访问初始化 PrintQueueIndexedProperty 类的一个新实例。Initializes a new instance of PrintQueue class with the specified PrintServer, queue name, array of PrintQueueIndexedProperty values to initialize, and desired access.

PrintQueue(PrintServer, String, String[], PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、属性过滤器和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, property filter, and desired access.

PrintQueue(PrintServer, String)

使用指定的 PrintQueue 和队列名称初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer and queue name.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName);
new System.Printing.PrintQueue : System.Printing.PrintServer * string -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server to host the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

注解

PrintQueue 不包括 PrintSystemDesiredAccess 参数的构造函数默认为 UsePrinter 访问。PrintQueue constructors that do not include a PrintSystemDesiredAccess parameter default to UsePrinter access.

PrintQueue(PrintServer, String, Int32)

使用指定 PrintQueue、队列名称和打印架构版本初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and print schema version.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, int printSchemaVersion);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, int printSchemaVersion);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * int -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

printSchemaVersion
Int32

要使用的打印架构的版本。The version of the Print Schema to use.

注解

PrintQueue 不包括 PrintSystemDesiredAccess 参数的构造函数默认为 UsePrinter 访问。PrintQueue constructors that do not include a PrintSystemDesiredAccess parameter default to UsePrinter access.

随 Windows Vista 一起发布的打印架构版本为 "1"。The Print Schema version released with Windows Vista is "1".

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

使用指定的 PrintQueue、队列名称和要初始化的 PrintServer 值的数组初始化 PrintQueueIndexedProperty 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and array of PrintQueueIndexedProperty values to initialize.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, cli::array <System::Printing::PrintQueueIndexedProperty> ^ propertyFilter);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, System.Printing.PrintQueueIndexedProperty[] propertyFilter);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * System.Printing.PrintQueueIndexedProperty[] -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

propertyFilter
PrintQueueIndexedProperty[]

指定要初始化的属性值的 PrintQueueIndexedProperty 值的数组。An array of PrintQueueIndexedProperty values that specifies the property values to initialize.

注解

PrintQueue 不包括 PrintSystemDesiredAccess 参数的构造函数默认为 UsePrinter 访问。PrintQueue constructors that do not include a PrintSystemDesiredAccess parameter default to UsePrinter access.

将构造函数与 propertyFilter 参数一起使用可以提高性能。The use of a constructor with the propertyFilter parameter improves performance.

PrintQueue(PrintServer, String, PrintSystemDesiredAccess)

使用指定 PrintQueue、队列名称和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and desired access.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, System::Printing::PrintSystemDesiredAccess desiredAccess);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, System.Printing.PrintSystemDesiredAccess desiredAccess);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * System.Printing.PrintSystemDesiredAccess -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

desiredAccess
PrintSystemDesiredAccess

指定程序所需打印队列的访问类型的 PrintSystemDesiredAccess 值之一。One of the PrintSystemDesiredAccess values that specifies the type of access to the print queue that your program needs.

异常

desiredAccess 是只能用于 PrintServer 对象,而不能用于 PrintQueue 对象的值。desiredAccess is a value that can be applied only to a PrintServer object, not a PrintQueue object. 例如 AdministrateServerFor example, AdministrateServer.

PrintQueue(PrintServer, String, String[])

使用指定 PrintQueue、队列名称和要初始化的属性名称的数组初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, and array of property names to initialize.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, cli::array <System::String ^> ^ propertyFilter);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, string[] propertyFilter);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * string[] -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

propertyFilter
String[]

要初始化的属性名称的数组。An array of the names of properties to initialize.

注解

PrintQueue 不包括 PrintSystemDesiredAccess 参数的构造函数默认为 UsePrinter 访问。PrintQueue constructors that do not include a PrintSystemDesiredAccess parameter default to UsePrinter access.

将构造函数与 propertyFilter 参数一起使用可以提高性能。The use of a constructor with the propertyFilter parameter improves performance.

PrintQueue(PrintServer, String, Int32, PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、打印架构版本和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, print schema version, and desired access.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, int printSchemaVersion, System::Printing::PrintSystemDesiredAccess desiredAccess);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, int printSchemaVersion, System.Printing.PrintSystemDesiredAccess desiredAccess);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * int * System.Printing.PrintSystemDesiredAccess -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

printSchemaVersion
Int32

要使用的打印架构的版本。The version of the Print Schema to use.

desiredAccess
PrintSystemDesiredAccess

指定程序所需打印队列的访问类型的 PrintSystemDesiredAccess 值之一。One of the PrintSystemDesiredAccess values that specifies the type of access to the print queue that your program needs.

异常

desiredAccess 是只能用于 PrintServer 对象,而不能用于 PrintQueue 对象的值。desiredAccess is a value that can be applied only to a PrintServer object, not a PrintQueue object. 例如 AdministrateServerFor example, AdministrateServer.

注解

随 Windows Vista 一起发布的打印架构版本为 "1"。The Print Schema version released with Windows Vista is "1".

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[], PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、要初始化的 PrintServer 值的数组和所需的访问初始化 PrintQueueIndexedProperty 类的一个新实例。Initializes a new instance of PrintQueue class with the specified PrintServer, queue name, array of PrintQueueIndexedProperty values to initialize, and desired access.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, cli::array <System::Printing::PrintQueueIndexedProperty> ^ propertyFilter, System::Printing::PrintSystemDesiredAccess desiredAccess);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, System.Printing.PrintQueueIndexedProperty[] propertyFilter, System.Printing.PrintSystemDesiredAccess desiredAccess);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * System.Printing.PrintQueueIndexedProperty[] * System.Printing.PrintSystemDesiredAccess -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

propertyFilter
PrintQueueIndexedProperty[]

指定要初始化的属性的 PrintQueueIndexedProperty 值的数组。An array of PrintQueueIndexedProperty values that specifies the properties to initialize.

desiredAccess
PrintSystemDesiredAccess

指定程序所需打印队列的访问类型的 PrintSystemDesiredAccess 值之一。One of the PrintSystemDesiredAccess values that specifies the type of access to the print queue that your program needs.

异常

desiredAccess 是只能用于 PrintServer 对象,而不能用于 PrintQueue 对象的值。desiredAccess is a value that can be applied only to a PrintServer object, not a PrintQueue object. 例如 AdministrateServerFor example, AdministrateServer.

注解

将构造函数与 propertyFilter 参数一起使用可以提高性能。The use of a constructor with the propertyFilter parameter improves performance.

PrintQueue(PrintServer, String, String[], PrintSystemDesiredAccess)

使用指定的 PrintQueue、队列名称、属性过滤器和所需访问初始化 PrintServer 类的一个新实例。Initializes a new instance of PrintQueue class using the specified PrintServer, queue name, property filter, and desired access.

public:
 PrintQueue(System::Printing::PrintServer ^ printServer, System::String ^ printQueueName, cli::array <System::String ^> ^ propertyFilter, System::Printing::PrintSystemDesiredAccess desiredAccess);
public PrintQueue (System.Printing.PrintServer printServer, string printQueueName, string[] propertyFilter, System.Printing.PrintSystemDesiredAccess desiredAccess);
new System.Printing.PrintQueue : System.Printing.PrintServer * string * string[] * System.Printing.PrintSystemDesiredAccess -> System.Printing.PrintQueue

参数

printServer
PrintServer

承载打印队列的打印服务器。The print server that hosts the print queue.

printQueueName
String

打印队列的名称。The name of the print queue.

propertyFilter
String[]

要初始化的属性名称的数组。An array of the names of properties to initialize.

desiredAccess
PrintSystemDesiredAccess

指定程序所需打印队列的访问类型的 PrintSystemDesiredAccess 值之一。One of the PrintSystemDesiredAccess values that specifies the type of access to the print queue that your program needs.

异常

desiredAccess 是只能用于 PrintServer 对象,而不能用于 PrintQueue 对象的值。desiredAccess is a value that can be applied only to a PrintServer object, not a PrintQueue object. 例如 AdministrateServerFor example, AdministrateServer.

注解

将构造函数与 propertyFilter 参数一起使用可以提高性能。The use of a constructor with the propertyFilter parameter improves performance.

适用于