ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ImageServiceLayer Class / InsertDefinitionQueries Method
A list containing DefinitionQuery objects.

In This Topic
    InsertDefinitionQueries Method (ImageServiceLayer)
    In This Topic
    Insert a list of DefinitionQuery. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void InsertDefinitionQueries( 
       IEnumerable<DefinitionQuery> queries
    )
    Public 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