.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

CustomCriteriaManager.RegisterCriterion(ICustomCriteriaOperatorQueryable) Method

Registers a specified custom criterion to use in LINQ to XPO expressions.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll


public static void RegisterCriterion(
    ICustomCriteriaOperatorQueryable customCriterion
Public Shared Sub RegisterCriterion(
    customCriterion As ICustomCriteriaOperatorQueryable


Name Type Description
customCriterion ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object implementing a custom criterion to register.


To access custom criteria registered via the RegisterCriterion and CustomCriteriaManager.RegisterCriteria method calls, call the CustomCriteriaManager.GetRegisteredCriteria function. To search for a specific registered custom criterion, call the CustomCriteriaManager.GetCriteria function.


The RegisterCriterion method throws an exception if null (Nothing in Visual Basic) is passed as the customCriterion.

See Also