The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

CustomCriteriaManager.RegisterCriteria(IEnumerable<ICustomCriteriaOperatorQueryable>) Method

Registers specified custom criteria to use in LINQ to XPO expressions.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public static void RegisterCriteria(IEnumerable<ICustomCriteriaOperatorQueryable> customCriteria)
Public Shared Sub RegisterCriteria(customCriteria As IEnumerable(Of ICustomCriteriaOperatorQueryable))
public static void RegisterCriteria(IEnumerable<ICustomCriteriaOperatorQueryable> customCriteria)
Public Shared Sub RegisterCriteria(customCriteria As IEnumerable(Of ICustomCriteriaOperatorQueryable))

Parameters

Name Type Description
customCriteria IEnumerable<ICustomCriteriaOperatorQueryable>

A collection of ICustomCriteriaOperatorQueryable objects implementing custom criteria to register.

Parameters

Name Type Description
customCriteria IEnumerable<ICustomCriteriaOperatorQueryable>

A collection of ICustomCriteriaOperatorQueryable objects implementing custom criteria to register.

Remarks

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

Note

The RegisterCriteria method throws an exception if one of the customCriteria collection's elements is null (Nothing in Visual Basic).

See Also