PrintQueueStringProperty Class (System.Printing)

Switch View :
ScriptFree
.NET Framework Class Library
PrintQueueStringProperty Class

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

Inheritance Hierarchy

System.Object
  System.Printing.PrintQueueStringProperty

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

Visual Basic
Public Class PrintQueueStringProperty
C#
public class PrintQueueStringProperty
Visual C++
public ref class PrintQueueStringProperty
F#
type PrintQueueStringProperty =  class end

The PrintQueueStringProperty type exposes the following members.

Constructors

  Name Description
Public method PrintQueueStringProperty Initializes a new instance of the PrintQueueStringProperty class.
Top
Properties

  Name Description
Public property Name Gets or sets the value of the print queue property that is represented.
Public property Type Gets or sets a value that identifies which of the three possible properties of a print queue is being represented.
Top
Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Remarks

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.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Thread Safety

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

Reference