A newer version of this page is available. Switch to the current version.

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.v19.2.dll


public static void RegisterCustomFunctions(
    IEnumerable<ICustomFunctionOperator> customFunctions
Public Shared Sub RegisterCustomFunctions(
    customFunctions As IEnumerable(Of ICustomFunctionOperator)


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