GetType( ) method (TypeHelper)
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
(Windows only; GUI for .NET only)
Gets a System.Type instance for a .NET class using a fully-qualified class name. Use this method when you must get the run-time type of an object for which you have no instance and cannot instantiate an instance.
If the type cannot be
found, this method returns the Unknown value (?) and optionally
throws a .NET Exception.
Return type: System.Type class (from the .NET Framework)
Access: PUBLIC STATIC
Applies to: Progress.Util.TypeHelper class
Syntax
|
- class-name
- A CHARACTER express that specifies the fully-qualified name of a class.
- throw-on-error
- A LOGICAL expression indicating whether to throw an exception if the type cannot be found. If TRUE, the AVM throws an exception. If FALSE, the AVM will not throw an exception.
The following example gets a System.Type instance for the System.Windows.Forms.Button class:
|