EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes Enum

Definición

Especifica los atributos de las colas de impresión.Specifies attributes of print queues.

Esta enumeración tiene el atributo FlagsAttribute, que permite una combinación bit a bit de sus valores de miembro.

public enum class EnumeratedPrintQueueTypes
[System.Flags]
public enum EnumeratedPrintQueueTypes
type EnumeratedPrintQueueTypes = 
Public Enum EnumeratedPrintQueueTypes
Herencia
EnumeratedPrintQueueTypesEnumeratedPrintQueueTypesEnumeratedPrintQueueTypesEnumeratedPrintQueueTypes
Atributos

Campos

Connections Connections Connections Connections 16

Cola de impresión que está conectada al servidor de impresión especificado.A print queue that is connected to the specified print server.

DirectPrinting DirectPrinting DirectPrinting DirectPrinting 2

Cola de impresión que envía un trabajo de impresión directamente a imprimir en lugar de ponerlo antes en cola.A print queue that sends a print job directly to printing instead of spooling the job first.

EnableBidi EnableBidi EnableBidi EnableBidi 2048

Cola de impresión de una impresora que tiene habilitada la comunicación bidireccional.A print queue for a printer that has bidirectional communication enabled.

EnableDevQuery EnableDevQuery EnableDevQuery EnableDevQuery 128

Cola de impresión que retiene los trabajos de impresión cuando las configuraciones de impresora y documento no coinciden.A print queue that holds its print jobs when the document and printer configurations do not match.

Fax Fax Fax Fax 16384

Cola de impresión que proporciona servicio a un fax.A print queue that services a fax machine.

KeepPrintedJobs KeepPrintedJobs KeepPrintedJobs KeepPrintedJobs 256

Cola de impresión que conserva los trabajos en cola después de imprimirlos.A print queue that keeps jobs in the queue after printing them.

Local Local Local Local 64

Cola de impresión que se instala como cola de impresión local en el servidor de impresión especificado.A print queue that is installed as a local print queue on the specified print server.

PublishedInDirectoryServices PublishedInDirectoryServices PublishedInDirectoryServices PublishedInDirectoryServices 8192

Cola de impresión que está visible en el directorio de impresoras.A print queue that is visible in the directory of printers.

PushedMachineConnection PushedMachineConnection PushedMachineConnection PushedMachineConnection 262144

Cola de impresión que se instaló mediante la directiva de equipo Insertar conexiones de impresora.A print queue that was installed by using the Push Printer Connections computer policy.

PushedUserConnection PushedUserConnection PushedUserConnection PushedUserConnection 131072

Cola de impresión que se instaló mediante la directiva de usuario Insertar conexiones de impresora.A print queue that was installed by using the Push Printer Connections user policy.

Queued Queued Queued Queued 1

Cola de impresión que permite varios trabajos de impresión en cola.A print queue that allows multiple print jobs in the queue.

RawOnly RawOnly RawOnly RawOnly 4096

Cola de impresión que sólo pone en cola los datos sin procesar.A print queue that spools only raw data.

Shared Shared Shared Shared 8

Cola de impresión que se comparte.A print queue that is shared.

TerminalServer TerminalServer TerminalServer TerminalServer 32768

Cola de impresión que se instala mediante la característica de redirección de Terminal Services.A print queue that is installed by the redirection feature in Terminal Services.

WorkOffline WorkOffline WorkOffline WorkOffline 1024

Cola de impresión que puede funcionar sin conexión.A print queue that can work offline.

Ejemplos

El ejemplo siguiente muestra cómo usar el PushedMachineConnection enumeración para obtener un subconjunto de colas de impresión disponibles.The following example shows how to use the PushedMachineConnection enumeration to get a subset of available print queues.

// Specify that the list will contain only the print queues that are installed as local and are shared
array<System::Printing::EnumeratedPrintQueueTypes>^ enumerationFlags = {EnumeratedPrintQueueTypes::Local,EnumeratedPrintQueueTypes::Shared};

LocalPrintServer^ printServer = gcnew LocalPrintServer();

//Use the enumerationFlags to filter out unwanted print queues
PrintQueueCollection^ printQueuesOnLocalServer = printServer->GetPrintQueues(enumerationFlags);

Console::WriteLine("These are your shared, local print queues:\n\n");

for each (PrintQueue^ printer in printQueuesOnLocalServer)
{
   Console::WriteLine("\tThe shared printer " + printer->Name + " is located at " + printer->Location + "\n");
}
Console::WriteLine("Press enter to continue.");
Console::ReadLine();
// Specify that the list will contain only the print queues that are installed as local and are shared
EnumeratedPrintQueueTypes[] enumerationFlags = {EnumeratedPrintQueueTypes.Local,
                                                EnumeratedPrintQueueTypes.Shared};

LocalPrintServer printServer = new LocalPrintServer();

//Use the enumerationFlags to filter out unwanted print queues
PrintQueueCollection printQueuesOnLocalServer = printServer.GetPrintQueues(enumerationFlags);

Console.WriteLine("These are your shared, local print queues:\n\n");

foreach (PrintQueue printer in printQueuesOnLocalServer)
{
    Console.WriteLine("\tThe shared printer " + printer.Name + " is located at " + printer.Location + "\n");
}
Console.WriteLine("Press enter to continue.");
Console.ReadLine();
' Specify that the list will contain only the print queues that are installed as local and are shared
Dim enumerationFlags() As EnumeratedPrintQueueTypes = {EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Shared}

Dim printServer As New LocalPrintServer()

'Use the enumerationFlags to filter out unwanted print queues
Dim printQueuesOnLocalServer As PrintQueueCollection = printServer.GetPrintQueues(enumerationFlags)

Console.WriteLine("These are your shared, local print queues:" & vbLf & vbLf)

For Each printer As PrintQueue In printQueuesOnLocalServer
	Console.WriteLine(vbTab & "The shared printer " & printer.Name & " is located at " & printer.Location & vbLf)
Next printer
Console.WriteLine("Press enter to continue.")
Console.ReadLine()

Comentarios

Use estos valores con el GetPrintQueues método a los subconjuntos de la lista de colas de impresión disponibles.Use these values with the GetPrintQueues method to list subsets of available print queues.

PushedMachineConnection y PushedUserConnection hacen referencia a las directivas que posibilitan la conexión automática de equipos y usuarios a las impresoras.PushedMachineConnection and PushedUserConnection refer to policies that enable automated connection of machines and users to printers. Consulte la sección "Implementar impresoras para usuarios o equipos mediante Directiva de grupo" en el guía paso a paso para la administración de impresión.See the section "Deploying Printers to Users or Computers by Using Group Policy" in the Step-by-Step Guide for Print Management.

Se aplica a

Consulte también: