Invokes the function with the specified name and parameters.
Namespace: MindFusion.Spreadsheet.Wpf.Expressions
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
Object InvokeFunction ( |
Visual Basic Copy Code |
---|
Function InvokeFunction( _ |
A helper object that can be used to obtain error values, invoke predefined functions, and so on.
The name of the function.
The function parameters.
A bool, double, string, DateTime, or TimeSpan value, or an error received by calling the IExpressionEvaluatorContext.GetError method. Any other value will be interpreted as the function not being invoked.
To interpret a parameter as a CLR value, pass the parameter to one of the following methods of the supplied IExpressionEvaluatorContext object: ToDouble, ToString, ToBool, ToDateTime, or ToTimeSpan. The context will attempt to convert the parameter to the desired type and returns null (Nothing in Visual Basic) if unsuccessful. To check if a parameter is an error, call the ISERROR function of the core evaluator.