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

InsertDefinitionQuery Method (IntegratedMeshSceneLayer)
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
)

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