PrintDriverProperty Constructors
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.
Initializes a new instance of the PrintDriverProperty class.
PrintDriverProperty(String) |
Initializes a new instance of the PrintDriverProperty class for the specified property. |
PrintDriverProperty(String, Object) |
Initializes a new instance of the PrintDriverProperty class that has the specified value for the specified attribute. |
Initializes a new instance of the PrintDriverProperty class for the specified property.
public:
PrintDriverProperty(System::String ^ attributeName);
public PrintDriverProperty (string attributeName);
new System.Printing.IndexedProperties.PrintDriverProperty : string -> System.Printing.IndexedProperties.PrintDriverProperty
Public Sub New (attributeName As String)
Parameters
- attributeName
- String
The name of the PrintDriver property that the PrintDriverProperty represents.
Remarks
The attributeName
should be spelled exactly the same as the name of some particular PrintDriver property of a print system object, including casing. For example, the QueueDriver property of a PrintQueue object must be spelled "QueueDriver", not "PrintDriver" or "Queuedriver".
Applies to
.NET Framework 4.8.1 og andre versjoner
Produkt | Versjoner |
---|---|
.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 |
Initializes a new instance of the PrintDriverProperty class that has the specified value for the specified attribute.
public:
PrintDriverProperty(System::String ^ attributeName, System::Object ^ attributeValue);
public PrintDriverProperty (string attributeName, object attributeValue);
new System.Printing.IndexedProperties.PrintDriverProperty : string * obj -> System.Printing.IndexedProperties.PrintDriverProperty
Public Sub New (attributeName As String, attributeValue As Object)
Parameters
- attributeName
- String
The name of the PrintDriver property that the PrintDriverProperty represents.
- attributeValue
- Object
The value of the property that the PrintDriverProperty represents.
Remarks
The attributeName
should be spelled exactly the same as the name of some particular PrintDriver property of a print system object, including casing. For example, the QueueDriver property of a PrintQueue object must be spelled "QueueDriver", not "PrintDriver" or "Queuedriver".
Applies to
.NET Framework 4.8.1 og andre versjoner
Produkt | Versjoner |
---|---|
.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-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: