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+

XPBaseObject.Evaluate(String) Method

Evaluates the specified string expression against the current instance of the persistent object.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public object Evaluate(string expression)
Public Function Evaluate(expression As String) As Object
public object Evaluate(string expression)
Public Function Evaluate(expression As String) As Object

Parameters

Name Type Description
expression String

A string that specifies the expression to evaluate.

Parameters

Name Type Description
expression String

A string that specifies the expression to evaluate.

Returns

Type Description
Object

A value evaluated.

Returns

Type Description
Object

A value evaluated.

Remarks

This method allows you to evaluate a specific expression against the current instance of the persistent object.

In the expression parameter, you can use numerous functions and arithmetic and logic operators. These are the same functions and operators that are encapsulated by the CriteriaOperator class' descendants. For instance, if a persistent object contains fields 'A' and 'B' you can use the "(A+B)*(A+B)" expression to calculate the sum of these fields squared.

See Also