Invoke( ) method (Method)
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Invokes the method represented by the Progress.Reflect.Method instance. This method can only be used to invoke a public method. If used on a non-public method, the method raises an error.
Return type: The type, if any, returned by the method
Access: PUBLIC
Applies to: Progress.Reflect.Method class
Syntax
|
- instance
- An instance of the class that contains the method. This instance must be of the type specified by either the
DeclaringClassorOriginatingClassproperty of theProgress.Reflect.Methodinstance. Using the instance parameter with a static method will raise an error. - params
- A
Progress.Lang.ParameterListinstance containing the parameters for the method. If the method has no parameters, pass aParameterListinstance with itsNumParametersproperty set to 0. If theParameterListinstance does not match the parameters for the method, the method will raise an error.
Notes
- Use the
Invoke( params )overload to invoke a static method and theInvoke(instance, params)an instance method. Calling an overload on a method of the incorrect scope will raise an error.