EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes EnumeratedPrintQueueTypes Enum

Definizione

Specifica gli attributi delle code di stampa.Specifies attributes of print queues.

Questa enumerazione ha un attributo FlagsAttribute che consente una combinazione bit per bit dei valori del relativo membro.

public enum class EnumeratedPrintQueueTypes
[System.Flags]
public enum EnumeratedPrintQueueTypes
type EnumeratedPrintQueueTypes = 
Public Enum EnumeratedPrintQueueTypes
Ereditarietà
EnumeratedPrintQueueTypesEnumeratedPrintQueueTypesEnumeratedPrintQueueTypesEnumeratedPrintQueueTypes
Attributi

Campi

Connections Connections Connections Connections 16

Coda di stampa collegata al server di stampa specificato.A print queue that is connected to the specified print server.

DirectPrinting DirectPrinting DirectPrinting DirectPrinting 2

Coda di stampa che invia direttamente il processo di stampa alla stampante invece di eseguirne prima lo spooling.A print queue that sends a print job directly to printing instead of spooling the job first.

EnableBidi EnableBidi EnableBidi EnableBidi 2048

Coda di stampa per una stampante con comunicazione bidirezionale abilitata.A print queue for a printer that has bidirectional communication enabled.

EnableDevQuery EnableDevQuery EnableDevQuery EnableDevQuery 128

Coda di stampa che sospende i processi di stampa quando le configurazioni di documento e stampante non corrispondono.A print queue that holds its print jobs when the document and printer configurations do not match.

Fax Fax Fax Fax 16384

Coda di stampa che serve un fax.A print queue that services a fax machine.

KeepPrintedJobs KeepPrintedJobs KeepPrintedJobs KeepPrintedJobs 256

Coda di stampa che tiene i processi in coda dopo averli stampati.A print queue that keeps jobs in the queue after printing them.

Local Local Local Local 64

Coda di stampa installata come coda locale sul server di stampa specificato.A print queue that is installed as a local print queue on the specified print server.

PublishedInDirectoryServices PublishedInDirectoryServices PublishedInDirectoryServices PublishedInDirectoryServices 8192

Coda di stampa visibile nella directory delle stampanti.A print queue that is visible in the directory of printers.

PushedMachineConnection PushedMachineConnection PushedMachineConnection PushedMachineConnection 262144

Coda di stampa installata utilizzando i criteri computer PushPrinterConnections.A print queue that was installed by using the Push Printer Connections computer policy.

PushedUserConnection PushedUserConnection PushedUserConnection PushedUserConnection 131072

Coda di stampa installata utilizzando i criteri utente PushPrinterConnections.A print queue that was installed by using the Push Printer Connections user policy.

Queued Queued Queued Queued 1

Coda di stampa che consente la presenza di più processi di stampa in coda.A print queue that allows multiple print jobs in the queue.

RawOnly RawOnly RawOnly RawOnly 4096

Coda di stampa che effettua lo spooling dei soli dati non elaborati.A print queue that spools only raw data.

Shared Shared Shared Shared 8

Coda di stampa condivisa.A print queue that is shared.

TerminalServer TerminalServer TerminalServer TerminalServer 32768

Coda di stampa installata dalla funzionalità di reindirizzamento di Servizi terminal.A print queue that is installed by the redirection feature in Terminal Services.

WorkOffline WorkOffline WorkOffline WorkOffline 1024

Coda di stampa in grado di operare in modalità offline.A print queue that can work offline.

Esempi

Nell'esempio seguente viene illustrato come utilizzare l' EnumeratedPrintQueueTypes enumerazione per ottenere un sottoinsieme di code di stampa disponibili.The following example shows how to use the EnumeratedPrintQueueTypes 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()

Commenti

Usare questi valori con il GetPrintQueues metodo per elencare i subset delle code di stampa disponibili.Use these values with the GetPrintQueues method to list subsets of available print queues.

PushedMachineConnectione PushedUserConnection fanno riferimento ai criteri che consentono la connessione automatica di computer e utenti alle stampanti.PushedMachineConnection and PushedUserConnection refer to policies that enable automated connection of machines and users to printers. Vedere la sezione "distribuzione di stampanti a utenti o computer tramite criteri di gruppo" nella Guida dettagliata per la gestione della stampa.See the section "Deploying Printers to Users or Computers by Using Group Policy" in the Step-by-Step Guide for Print Management.

Si applica a

Vedi anche