ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BasicFeatureLayer Class / RemoveDefinitionQueries Method
The names of the queries to remove.

In This Topic
    RemoveDefinitionQueries Method (BasicFeatureLayer)
    In This Topic
    Removes the definition queries specified by the list of names. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void RemoveDefinitionQueries( 
       IEnumerable<string> queryNames
    )
    Public Sub RemoveDefinitionQueries( _
       ByVal queryNames As IEnumerable(Of String) _
    ) 

    Parameters

    queryNames
    The names of the queries to remove.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    DefinitionQueries is empty.
    Query name specified is empty or cannot be found.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also