ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / InsertDefinitionQuery Method
A DefinitionQuery object.
A boolean to indicate it should be the active definition query.

In This Topic
    InsertDefinitionQuery Method (FeatureSceneLayer)
    In This Topic
    Inserts a DefinitionQuery. If makeActive is true, makes it the active definition query. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void InsertDefinitionQuery( 
       DefinitionQuery definitionQuery,
       bool makeActive
    )
    Public Sub InsertDefinitionQuery( _
       ByVal definitionQuery As DefinitionQuery, _
       Optional ByVal makeActive As Boolean _
    ) 

    Parameters

    definitionQuery
    A DefinitionQuery object.
    makeActive
    A boolean to indicate it should be the active definition query.
    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 the definitionQuery is empty.
    Remarks
    The DefinitionQuery.Name of the definitionQuery cannot already exist in the list of DefinitionQueries. When Name is empty, an automatically generated name gets assigned.The DefinitionQuery.WhereClause cannot be empty.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also