ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITableDefinitionQueries Interface / InsertDefinitionQueries Method
A list containing DefinitionQuery objects.

In This Topic
    InsertDefinitionQueries Method (ITableDefinitionQueries)
    In This Topic
    Insert a list of definition queries. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    void InsertDefinitionQueries( 
       IEnumerable<DefinitionQuery> queries
    )
    Sub InsertDefinitionQueries( _
       ByVal queries As IEnumerable(Of DefinitionQuery) _
    ) 

    Parameters

    queries
    A list containing DefinitionQuery objects.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    A definition query with the same name already exists in the list.
    Where clause of a definition query is empty.
    Remarks
    The DefinitionQuery.Name of each DefinitionQuery cannot already exist in the list of DefinitionQueries. Similarly the DefinitionQuery.WhereClause cannot be empty.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also