ArcGIS Pro 2.9 API Reference Guide
ValidateExpression Method

ArcGIS.Desktop.Mapping.Controls Namespace > QueryBuilderControl Class : ValidateExpression Method
Use True to verify SQL syntax only, False to verify SQL syntax and if any rows will be returned.
Validate the current expression in the QueryBuilderControl. Set the verifySyntaxOnly to true to verify SQL syntax only. Use false to validate the expression for syntax and determine whether any rows will be returned.
Syntax
public Task<bool> ValidateExpression( 
   bool verifySyntaxOnly
)
Public Function ValidateExpression( _
   ByVal verifySyntaxOnly As Boolean _
) As Task(Of Boolean)

Parameters

verifySyntaxOnly
Use True to verify SQL syntax only, False to verify SQL syntax and if any rows will be returned.

Return Value

Task of bool indicating if query expression is valid.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

QueryBuilderControl Class
QueryBuilderControl Members