CustomCriteriaManager.GetCriteria(MethodInfo) Method
Searches custom criteria registered in an application via the CustomCriteriaManager.RegisterCriterion and CustomCriteriaManager.RegisterCriteria method calls for a criterion associated with a specified method.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static ICustomCriteriaOperatorQueryable GetCriteria(
MethodInfo methodInfo
)
#Parameters
Name | Type | Description |
---|---|---|
method |
Method |
A Method |
#Returns
Type | Description |
---|---|
ICustom |
An ICustom |
#Remarks
This method searches a collection returned by the CustomCriteriaManager.GetRegisteredCriteria function for a custom criterion whose ICustomCriteriaOperatorQueryable.GetMethodInfo method implementation matches the methodInfo.