Back to Devexpress

CustomCriteriaManager.RegisterCriterion(ICustomCriteriaOperatorQueryable) Method

xpo-devexpress-dot-xpo-dot-customcriteriamanager-dot-registercriterion-x28-devexpress-dot-xpo-dot-icustomcriteriaoperatorqueryable-x29.md

latest2.4 KB
Original Source

CustomCriteriaManager.RegisterCriterion(ICustomCriteriaOperatorQueryable) Method

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

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public static void RegisterCriterion(
    ICustomCriteriaOperatorQueryable customCriterion
)
vb
Public Shared Sub RegisterCriterion(
    customCriterion As ICustomCriteriaOperatorQueryable
)

Parameters

NameTypeDescription
customCriterionICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object implementing a custom criterion to register.

|

Remarks

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.

Note

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

See Also

UnregisterCriterion

CustomCriteriaManager Class

CustomCriteriaManager Members

DevExpress.Xpo Namespace