ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / SetActiveDefinitionQuery Method
The name of the query definition to set as active.
Version

SetActiveDefinitionQuery Method (FeatureSceneLayer)
Sets the specified query to be the active definition query. If the queryName is null, then the active query definition that is cleared. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetActiveDefinitionQuery( 
   string queryName
)

Parameters

queryName
The name of the query definition to set as active.
Exceptions
ExceptionDescription
There are no query definitions.
The specified queryName doesn't match any items in the query definition collection.
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also