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.v23.2.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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.