ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping.Controls Namespace / QueryBuilderControl Class / ValidateExpressionAsync Method
Use True to verify SQL syntax only, False to verify SQL syntax and if any rows will be returned.

In This Topic
    ValidateExpressionAsync Method
    In This Topic
    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> ValidateExpressionAsync( 
       bool verifySyntaxOnly
    )
    Public Function ValidateExpressionAsync( _
       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

    ArcGIS Pro version: 3 or higher.
    See Also