GetType( ) method (TypeHelper)
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
(Windows only; GUI for .NET)
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.
System.Type class from .NETAccess: 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:
|