PrintServer Constructor (PrintSystemDesiredAccess)


Initializes a new instance of the PrintServer class that represents the local print server and assigns it the specified PrintSystemDesiredAccess.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public PrintServer(
	PrintSystemDesiredAccess desiredAccess


Type: System.Printing.PrintSystemDesiredAccess

A value that specifies the type of print server access that your program needs.

Exception Condition

desiredAccess is a value that can be applied only to a PrintQueue object, not a LocalPrintServer object. For example, PrintSystemDesiredAccess.UsePrinter.

The PrintServer will be initialized with the local print server's properties, such as Name.

.NET Framework
Available since 3.0
Return to top