This documentation is archived and is not being maintained.

PrintPropertyDictionary.GetProperty Method

Gets the object (of a class that is derived from PrintProperty) that represents the specified property.

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

public PrintProperty GetProperty(
	string attribName


Type: System.String

The name of the property that is represented by the PrintProperty.

Return Value

Type: System.Printing.IndexedProperties.PrintProperty
An object of a class that is derived from the PrintProperty.

The attribName must be spelled exactly the same as the name of some particular property of a print system object, including casing. For example, the QueuePort property of a PrintQueue object must be spelled "QueuePort", not "PrintPort", "Port", or "Queueport".

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0