Skip to main content

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

NuGet Package: DevExpress.Data

Declaration

public static void RegisterCustomFunction(
    ICustomFunctionOperator customFunction
)

Parameters

Name Type Description
customFunction ICustomFunctionOperator

An ICustomFunctionOperator object specifying a custom function to register.

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterCustomFunction(ICustomFunctionOperator) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also