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.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
)
Public Shared Function UnregisterCriterion(
    customCriterion As ICustomCriteriaOperatorQueryable
) As Boolean
public static bool UnregisterCriterion(
    ICustomCriteriaOperatorQueryable customCriterion
)
Public Shared Function UnregisterCriterion(
    customCriterion As ICustomCriteriaOperatorQueryable
) As Boolean

Parameters

Name Type Description
customCriterion ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object instance specifying a custom critrerion to unregister.

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.

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