Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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

Declaration

public static bool UnregisterCriterion(
    ICustomCriteriaOperatorQueryable customCriterion
)

Parameters

Name Type Description
customCriterion ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object instance specifying a custom critrerion to unregister.

Returns

Type Description
Boolean

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

Remarks

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