CriteriaOperator.RegisterCustomFunction(ICustomFunctionOperator) Method

Registers a specified custom function to use in any CriteriaOperator-based criteria in your application.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Core.v18.2.dll

Declaration

public static void RegisterCustomFunction(
    ICustomFunctionOperator customFunction
)
Public Shared Sub RegisterCustomFunction(
    customFunction As ICustomFunctionOperator
)

Parameters

Type Name Description
ICustomFunctionOperator customFunction

An ICustomFunctionOperator object specifying a custom function to register.

To access custom functions registered via the RegisterCustomFunction and CriteriaOperator.RegisterCustomFunctions method calls, call the CriteriaOperator.GetCustomFunctions function. To search for a specific registered custom function, call the CriteriaOperator.GetCustomFunction function.

Note

The RegisterCustomFunction method throws an exception if the customFunction has already been registered.

See Also