Язык

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

Определение

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

Перегрузки

Имя Описание
PrintQueue(PrintServer, String)

Инициализирует новый экземпляр класса с помощью указанного PrintQueuePrintServer и имени очереди.

PrintQueue(PrintServer, String, Int32)

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

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

Инициализирует новый экземпляр класса с помощью указанного PrintQueuePrintServer, имени очереди и массива значений для инициализации PrintQueueIndexedProperty .

PrintQueue(PrintServer, String, PrintSystemDesiredAccess)

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

PrintQueue(PrintServer, String, String[])

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

PrintQueue(PrintServer, String, Int32, PrintSystemDesiredAccess)

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

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

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

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

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

PrintQueue(PrintServer, String)

Инициализирует новый экземпляр класса с помощью указанного PrintQueuePrintServer и имени очереди.

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)

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

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 доступа.

Версия Print Schema с Windows Vista имеет значение "1".

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

PrintQueue(PrintServer, String, PrintQueueIndexedProperty[])

Инициализирует новый экземпляр класса с помощью указанного PrintQueuePrintServer, имени очереди и массива значений для инициализации 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[])

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

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)

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

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.

Комментарии

Версия Print Schema с 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)

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

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 параметром повышает производительность.

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