laptop and a wrench

Bug

The definition query is missing in the Layer Properties of ArcGIS Pro after setting it in an Add-In button using FeatureLayer.SetDefinitionQuery.

Last Published: May 31, 2019 ArcGIS Pro SDK for .NET
Bug ID Number BUG-000122542
SubmittedMay 22, 2019
Last ModifiedJuly 30, 2025
Applies toArcGIS Pro SDK for .NET
Version found2.3.2
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.4
StatusFixed

Additional Information

To update the user interface to reflect the definition query on the layer in ArcGIS Pro, the CIM must be updated with the change after calling the SetDefinitionQuery method on the layer class. Refer to the code below as an example: featureLayer.SetDefinitionQuery(" QUERYDEFINITION "); CIMFeatureLayer cimDef = featureLayer.GetDefinition() as CIMFeatureLayer; featureLayer.SetDefinition(cimDef);

Steps to Reproduce

Bug ID: BUG-000122542

Software:

  • ArcGIS Pro SDK for .NET

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options