PrintQueue Конструкторы

Определение

Инициализирует новый экземпляр класса PrintQueue.

Перегрузки

PrintQueue(PrintServer, String)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer и имя очереди.

PrintQueue(PrintServer, String, Int32)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и версию схемы печати.

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и массив инициализируемых значений PrintQueueIndexedProperty.

PrintQueue(PrintServer, String, PrintSystemDesiredAccess)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и необходимый тип доступа.

PrintQueue(PrintServer, String, String[])

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и массив имен инициализируемых свойств.

PrintQueue(PrintServer, String, Int32, PrintSystemDesiredAccess)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, версию схемы печати и необходимый тип доступа.

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

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, массив инициализируемых значений типа PrintQueueIndexedProperty и необходимый тип доступа.

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

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, фильтр свойств и необходимый тип доступа.

PrintQueue(PrintServer, String)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer и имя очереди.

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
Public Sub New (printServer As PrintServer, printQueueName As String)

Параметры

printServer
PrintServer

Сервер печати для размещения очереди печати.

printQueueName
String

Имя очереди печати.

Комментарии

PrintQueue Конструкторы, которые не включают PrintSystemDesiredAccess параметр по умолчанию для UsePrinter доступа.

Применяется к

PrintQueue(PrintServer, String, Int32)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и версию схемы печати.

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
Public Sub New (printServer As PrintServer, printQueueName As String, printSchemaVersion As Integer)

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

printSchemaVersion
Int32

Используемая версия схемы печати.

Комментарии

PrintQueue Конструкторы, которые не включают PrintSystemDesiredAccess параметр по умолчанию для UsePrinter доступа.

Версия схемы печати, выпущенная с Windows Vista: "1".

Применяется к

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и массив инициализируемых значений PrintQueueIndexedProperty.

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
Public Sub New (printServer As PrintServer, printQueueName As String, propertyFilter As PrintQueueIndexedProperty())

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

propertyFilter
PrintQueueIndexedProperty[]

Массив значений типа PrintQueueIndexedProperty, в котором указаны значения свойств для инициализации.

Комментарии

PrintQueue Конструкторы, которые не включают PrintSystemDesiredAccess параметр по умолчанию для UsePrinter доступа.

Использование конструктора с параметром propertyFilter повышает производительность.

Применяется к

PrintQueue(PrintServer, String, PrintSystemDesiredAccess)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и необходимый тип доступа.

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
Public Sub New (printServer As PrintServer, printQueueName As String, desiredAccess As PrintSystemDesiredAccess)

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

desiredAccess
PrintSystemDesiredAccess

Одно из значений PrintSystemDesiredAccess, указывающее тип доступа к очереди печати, необходимый программе.

Исключения

Значение desiredAccess можно применить только к объекту PrintServer, а не PrintQueue. Например, AdministrateServer.

Применяется к

PrintQueue(PrintServer, String, String[])

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди и массив имен инициализируемых свойств.

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
Public Sub New (printServer As PrintServer, printQueueName As String, propertyFilter As String())

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

propertyFilter
String[]

Массив имен свойств для инициализации.

Комментарии

PrintQueue Конструкторы, которые не включают PrintSystemDesiredAccess параметр по умолчанию для UsePrinter доступа.

Использование конструктора с параметром propertyFilter повышает производительность.

Применяется к

PrintQueue(PrintServer, String, Int32, PrintSystemDesiredAccess)

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, версию схемы печати и необходимый тип доступа.

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
Public Sub New (printServer As PrintServer, printQueueName As String, printSchemaVersion As Integer, desiredAccess As PrintSystemDesiredAccess)

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

printSchemaVersion
Int32

Используемая версия схемы печати.

desiredAccess
PrintSystemDesiredAccess

Одно из значений PrintSystemDesiredAccess, указывающее тип доступа к очереди печати, необходимый программе.

Исключения

Значение desiredAccess можно применить только к объекту PrintServer, а не PrintQueue. Например, AdministrateServer.

Комментарии

Версия схемы печати, выпущенная с Windows Vista: "1".

Применяется к

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

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, массив инициализируемых значений типа PrintQueueIndexedProperty и необходимый тип доступа.

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
Public Sub New (printServer As PrintServer, printQueueName As String, propertyFilter As PrintQueueIndexedProperty(), desiredAccess As PrintSystemDesiredAccess)

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

propertyFilter
PrintQueueIndexedProperty[]

Массив значений типа PrintQueueIndexedProperty, в котором указаны свойства для инициализации.

desiredAccess
PrintSystemDesiredAccess

Одно из значений PrintSystemDesiredAccess, указывающее тип доступа к очереди печати, необходимый программе.

Исключения

Значение desiredAccess можно применить только к объекту PrintServer, а не PrintQueue. Например, AdministrateServer.

Комментарии

Использование конструктора с параметром propertyFilter повышает производительность.

Применяется к

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

Инициализирует новый экземпляр класса PrintQueue, используя указанный PrintServer, имя очереди, фильтр свойств и необходимый тип доступа.

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
Public Sub New (printServer As PrintServer, printQueueName As String, propertyFilter As String(), desiredAccess As PrintSystemDesiredAccess)

Параметры

printServer
PrintServer

Сервер печати, на котором размещается очередь печати.

printQueueName
String

Имя очереди печати.

propertyFilter
String[]

Массив имен свойств для инициализации.

desiredAccess
PrintSystemDesiredAccess

Одно из значений PrintSystemDesiredAccess, указывающее тип доступа к очереди печати, необходимый программе.

Исключения

Значение desiredAccess можно применить только к объекту PrintServer, а не PrintQueue. Например, AdministrateServer.

Комментарии

Использование конструктора с параметром propertyFilter повышает производительность.

Применяется к