LocalPrintServer Methods

The LocalPrintServer type exposes the following members.

  Name Description
Public method Commit Writes any changes that your application made to the properties of the LocalPrintServer to the actual print server that the object represents. (Overrides PrintServer.Commit().)
Public method ConnectToPrintQueue(PrintQueue) Connects the local print server to the specified PrintQueue.
Public method ConnectToPrintQueue(String) Connects to the print queue that is specified by using the String.
Public method DisconnectFromPrintQueue(PrintQueue) Disconnects the local print server from the specified PrintQueue.
Public method DisconnectFromPrintQueue(String) Disconnects from the print queue that is specified in the String.
Public method Dispose() Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Static member GetDefaultPrintQueue Returns a reference to the default print queue of the LocalPrintServer.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPrintQueue(String) Obtains a reference to the named print queue from the print server. (Inherited from PrintServer.)
Public method GetPrintQueue(String, String[]) Gets a specified print queue from the print server. (Inherited from PrintServer.)
Public method GetPrintQueues() Gets the collection of print queues that the print server hosts. (Inherited from PrintServer.)
Public method GetPrintQueues(EnumeratedPrintQueueTypes[]) Gets the collection of print queues of the specified types that are named in EnumeratedPrintQueueTypes and hosted by the print server. (Inherited from PrintServer.)
Public method GetPrintQueues(PrintQueueIndexedProperty[]) Gets a collection of print queues that are hosted by the print server and initialized only in the properties that are specified in the PrintQueueIndexedProperty array. (Inherited from PrintServer.)
Public method GetPrintQueues(String[]) Gets a collection of print queues that are hosted by the print server and that are initialized only in the specified properties. (Inherited from PrintServer.)
Public method GetPrintQueues(PrintQueueIndexedProperty[], EnumeratedPrintQueueTypes[]) Gets a collection of print queues of the specified types. These print queues are only initialized in the properties that are specified in the PrintQueueIndexedProperty array. (Inherited from PrintServer.)
Public method GetPrintQueues(String[], EnumeratedPrintQueueTypes[]) Gets the collection of print queues, which are of the specified EnumeratedPrintQueueTypes and are initialized only in the specified properties. (Inherited from PrintServer.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InstallPrintQueue(String, String, String[], String, PrintPropertyDictionary) Installs a print queue, and associated printer driver, on the print server. (Inherited from PrintServer.)
Public method InstallPrintQueue(String, String, String[], String, PrintQueueAttributes) Installs a print queue, and associated printer driver, on the print server. (Inherited from PrintServer.)
Public method InstallPrintQueue(String, String, String[], String, PrintQueueAttributes, PrintQueueStringProperty, Int32, Int32) Installs a prioritized print queue, and associated printer driver, on the print server. (Inherited from PrintServer.)
Public method InstallPrintQueue(String, String, String[], String, PrintQueueAttributes, String, String, String, String, Int32, Int32) Installs a shared, prioritized print queue, and associated printer driver, on the print server. (Inherited from PrintServer.)
Public method Refresh Updates the properties of the LocalPrintServer object so that their values match the values of the print server that the object represents. (Overrides PrintServer.Refresh().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft