DeclaringClass property
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a Progress.Lang.Class instance representing the class in which the
constructor, event, method, data member, or property is defined.
Data type: Progress.Lang.Class class
Access: PUBLIC Read-only
Applies to: Progress.Reflect.Event class, Progress.Reflect.Method class, Progress.Reflect.Variable class
When applied to a class member (method, property, or event) that is overridden, the
DeclaringClass property returns the most-derived class containing the
implementation of the member.
For example, consider the classes defined in the following code fragment:
|
Calling GetMethod("MethodA", params) on instances of
Progress.Lang.Class derived from each of the three classes would return
Progress.Reflect.Method instances with the
DeclaringClass properties set as shown in the table:
Progress.Lang.Class instance |
Class indicated by the DeclaringClass
property |
|---|---|
ClassA
|
ClassA
|
ClassB
|
ClassA
|
ClassC
|
ClassC
|
See also: OriginatingClass property