Export (0) Print
Expand All

PrintQueueStringProperty Class

Represents one, and only one, of three possible properties of a print queue: Location, Comment, or ShareName.

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

public class PrintQueueStringProperty
public class PrintQueueStringProperty
public class PrintQueueStringProperty
Not applicable.

An object of this class is primarily used as a parameter for one of the overloaded InstallPrintQueue methods of a PrintServer. This method makes it possible to install a print queue while initializing only one of its three major String properties. Having three separate overloads of the method is not possible because they would have the same signature and no two overloads of a method can have the same signature. If you want to install a print queue and initialize two or more of its major string properties, there is another overload, InstallPrintQueue, that substitutes three String parameters for the PrintQueueStringProperty parameter. These parameters are used to set the major String properties in this order: ShareName, Comment, and Location. Use an empty string for a parameter that corresponds to a property you do not want to initialize.

System.Object
  System.Printing.PrintQueueStringProperty

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft