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

Declaration

public static ICustomCriteriaOperatorQueryable GetCriteria(MethodInfo methodInfo)
Public Shared Function GetCriteria(methodInfo As MethodInfo) As ICustomCriteriaOperatorQueryable
public static ICustomCriteriaOperatorQueryable GetCriteria(MethodInfo methodInfo)
Public Shared Function GetCriteria(methodInfo As MethodInfo) As ICustomCriteriaOperatorQueryable

Parameters

Name Type Description
methodInfo MethodInfo

A MethodInfo object identifying a method associated with a custom criterion to search.

Parameters

Name Type Description
methodInfo MethodInfo

A MethodInfo object identifying a method associated with a custom criterion to search.

Returns

Type Description
ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object that returns the methodInfo via the ICustomCriteriaOperatorQueryable.GetMethodInfo method implementation, if found; otherwise, null (Nothing in Visual Basic).

Returns

Type Description
ICustomCriteriaOperatorQueryable

An ICustomCriteriaOperatorQueryable object that returns the methodInfo via the ICustomCriteriaOperatorQueryable.GetMethodInfo method implementation, if found; otherwise, null (Nothing in Visual Basic).

Remarks

This method searches a collection returned by the CustomCriteriaManager.GetRegisteredCriteria function for a custom criterion whose ICustomCriteriaOperatorQueryable.GetMethodInfo method implementation matches the methodInfo.

See Also