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.Core.v18.2.dll

Declaration

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

Parameters

Type Name Description
IEnumerable<ICustomFunctionOperator> customFunctions

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.

Note

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

See Also