MindFusion.Wpf Pack Programmer's Guide
IExpressionEvaluator.InvokeFunction Method
See Also
 





Invokes the function with the specified name and parameters.

Namespace: MindFusion.Spreadsheet.Wpf.Expressions
Assembly: MindFusion.Spreadsheet.Wpf

 Syntax

C#  Copy Code

Object InvokeFunction (
    IExpressionEvaluatorContext context,
    string name,
    IList parameters
)

Visual Basic  Copy Code

Function InvokeFunction( _
    context As IExpressionEvaluatorContext, _
    name As String, _
    parameters As IList _
) As Object

 Parameters

context

A helper object that can be used to obtain error values, invoke predefined functions, and so on.

name

The name of the function.

parameters

The function parameters.

 Return Value

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.

 Remarks

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.

 See Also

IExpressionEvaluator Members
IExpressionEvaluator Interface
MindFusion.Spreadsheet.Wpf.Expressions Namespace