Export (0) Print
Expand All

PrintServer Methods

The PrintServer type exposes the following members.

  Name Description
Public method Commit Commits any changes that your program made to the properties of the print server object by writing them to the print server that the object represents. (Overrides PrintSystemObject.Commit().)
Public method Static member DeletePrintQueue(PrintQueue) Removes the specified PrintQueue from the print server.
Public method Static member DeletePrintQueue(String) Removes the print queue with the specified name from the print server.
Public method Dispose() Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources. (Inherited from PrintSystemObject.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases the resources that are being used by the PrintSystemObject. (Inherited from PrintSystemObject.)
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.
Public method GetPrintQueue(String, String[]) Gets a specified print queue from the print server.
Public method GetPrintQueues() Gets the collection of print queues that the print server hosts.
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.
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.
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.
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.
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.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize Initializes the properties of the PrintSystemObject. (Inherited from PrintSystemObject.)
Public method InstallPrintQueue(String, String, String[], String, PrintPropertyDictionary) Installs a print queue, and associated printer driver, on the print server.
Public method InstallPrintQueue(String, String, String[], String, PrintQueueAttributes) Installs a print queue, and associated printer driver, on the print server.
Public method InstallPrintQueue(String, String, String[], String, PrintQueueAttributes, PrintQueueStringProperty, Int32, Int32) Installs a prioritized print queue, and associated printer driver, on the print server.
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.
Protected method InternalDispose Releases the unmanaged resources that are used by the PrintServer and optionally releases the managed resources. (Overrides PrintSystemObject.InternalDispose(Boolean).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Refresh Updates the properties of the PrintServer object so that each property value matches the corresponding attribute value of the print server that the object represents. (Overrides PrintSystemObject.Refresh().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft