Returns a Progress.Reflect.Event instance describing the class event that matches the specified conditions. If there is no matching event, the method returns the Unknown value (?).
Return type: Progress.Reflect.Event class
Access: PUBLIC
Applies to: Progress.Lang.Class class
Syntax
GetEvent ( INPUT event-name AS CHARACTER )
GetEvent ( INPUT event-name AS CHARACTER,
INPUT flags AS Progress.Reflect.Flags )
|
- event-name
- A CHARACTER expression that evaluates to the name of the event.
- flags
- A Progress.Reflect.Flags instance indicating the access mode(s), scope(s), and/or class level(s) the returned event must have. See Progress.Reflect.Flags enumeration for more information.
Notes
- If there are one or more overrides of any particular event, the Progress.Reflect.Event instance describes the override from the most derived subclass that overrides that event.
- GetEvent(event-name) only returns public, non-static events. GetEvent(event-name, flags) returns all ABL class events based on the flags specified. However, you can only invoke events according to the same rules as when reflection is not used. For example, you can only invoke a protected event from within the class that defines it, or from a subclass.
- This method does not return .NET class events defined as private or internal.