Mercury.QTP.CustomServer Namespace > EventsListenerBase Class : InvokeCustomServer Method |
InvokeCustomServer("MethodName", Param1, Param2, etc…);
For example, you can use it to call GetSettingsValue to get settings from the configuration file that are not available in the AUT context.
'Declaration
Protected Function InvokeCustomServer( _ ByVal strMethod As System.String, _ ByVal ParamArray parameters() As System.Object _ ) As System.Object
protected System.object InvokeCustomServer( System.string strMethod, params System.object[] parameters )
Parameters
- strMethod
- The name of the method to be called.
- parameters
- A comma-separated list of the method parameters. For example:
InvokeCustomServer("MethodName", Param1, Param2, etc…);