PrintQueueStringProperty Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class PrintQueueStringProperty
public class PrintQueueStringProperty
type PrintQueueStringProperty = class
Public Class PrintQueueStringProperty
- Inheritance
-
PrintQueueStringProperty
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.
Caution
Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.
If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.
Print |
Initializes a new instance of the PrintQueueStringProperty class. |
Name |
Gets or sets the value of the print queue property that is represented. |
Type |
Gets or sets a value that identifies which of the three possible properties of a print queue is being represented. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: