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.Data.v21.1.dll


public static void RegisterCustomFunction(
    ICustomFunctionOperator customFunction


Name Type Description
customFunction ICustomFunctionOperator

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.


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

See Also