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(MethodInfo) Method

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public static bool UnregisterCriterion(MethodInfo methodInfo)
Public Shared Function UnregisterCriterion(methodInfo As MethodInfo) As Boolean
public static bool UnregisterCriterion(MethodInfo methodInfo)
Public Shared Function UnregisterCriterion(methodInfo As MethodInfo) As Boolean

Parameters

Name Type Description
methodInfo MethodInfo

A MethodInfo object of a method associated with a custom criterion to unregister.

Parameters

Name Type Description
methodInfo MethodInfo

A MethodInfo object of a method associated with a custom criterion to unregister.

Returns

Type Description
Boolean

true if a custom criterion associated with the method whose metadata matches the methodInfo has successfully been removed from a collection returned by the CustomCriteriaManager.GetRegisteredCriteria function; otherwise, false.

Returns

Type Description
Boolean

true if a custom criterion associated with the method whose metadata matches the methodInfo has successfully been removed from a collection returned by the CustomCriteriaManager.GetRegisteredCriteria function; otherwise, false.

Remarks

To remove a custom criterion instance, call the other CustomCriteriaManager.UnregisterCriterion overloaded method and pass the instance as its parameter.

See Also