Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : GetProperty( ) method
 

GetProperty( ) method

Returns a Progress.Reflect.Property instance describing the class property that matches the specified conditions. If there is no matching property, the method returns the Unknown value (?).
Return type: Progress.Reflect.Property class
Access: PUBLIC
Applies to: Progress.Lang.Class class

Syntax

GetProperty ( INPUT property-name AS CHARACTER )

GetProperty ( INPUT property-name AS CHARACTER,
INPUT flags AS Progress.Reflect.Flags )
property-name
A CHARACTER expression that evaluates to the name of the property.
flags
A Progress.Reflect.Flags instance indicating the access mode(s), scope(s), and/or class level(s) the returned property must have. See Progress.Reflect.Flags enumeration for more information.

Notes

*If there are one or more overrides of any particular property, the Progress.Reflect.Property instance describes the override from the most derived subclass that overrides that property. See GetMethod( ) method for an example of how overridden class members are handled.
*GetProperty(property-name) only returns public, non-static properties. GetProperty(property-name, flags) does return ABL class properties defined as protected, private, and/or static if they satisfy the specified conditions, although you cannot get or set the values of any private or protected properties that are returned. A private property will only be returned if it is defined in the given class; a private property inherited from a super class will not be returned.
*This method does not return .NET class properties defined as private or internal.