.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

CustomCriteriaManager.UnregisterCriterion(ICustomCriteriaOperatorQueryable) Method

Unregisters a specified custom criterion from use in LINQ to XPO expressions in your application.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll


public static bool UnregisterCriterion(
    ICustomCriteriaOperatorQueryable customCriterion
Public Shared Function UnregisterCriterion(
    customCriterion As ICustomCriteriaOperatorQueryable
) As Boolean


Name Type Description
customCriterion ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object instance specifying a custom critrerion to unregister.


Type Description

true if the customCriterion has successfully been removed from a collection returned by the CustomCriteriaManager.GetRegisteredCriteria function; otherwise, false.


To remove a custom criterion associated with a specific method, call the other CustomCriteriaManager.UnregisterCriterion overloaded method and pass the method metadata as its parameter.

See Also