Skip to main content

CriteriaOperator.RegisterCustomFunctions(IEnumerable<ICustomFunctionOperator>) Method

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

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public static void RegisterCustomFunctions(
    IEnumerable<ICustomFunctionOperator> customFunctions


Name Type Description
customFunctions IEnumerable<ICustomFunctionOperator>

A collection of ICustomFunctionOperator objects specifying custom functions to register.


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


The RegisterCustomFunctions method throws an exception if a function contained in the customFunction collection has already been registered.

See Also