LocalPrintServer Constructor (String[], PrintSystemDesiredAccess)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the LocalPrintServer class that has the specified properties and PrintSystemDesiredAccess.

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

public LocalPrintServer(
	string[] propertiesFilter,
	PrintSystemDesiredAccess desiredAccess
)

Parameters

propertiesFilter
Type: System.String[]

An array of the property names that the constructor initializes.

desiredAccess
Type: System.Printing.PrintSystemDesiredAccess

A value specifying the type of access to the print server that your application needs.

Exception Condition
PrintServerException

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

.NET Framework
Available since 3.0
Return to top
Show: