The definition query is missing in the Layer Properties of ArcGIS Pro after setting it in an Add-In button using FeatureLayer.SetDefinitionQuery.
上次发布: May 31, 2019ArcGIS Pro SDK for .NET
漏洞 ID 编号
BUG-000122542
已提交
May 22, 2019
上次修改时间
July 30, 2025
适用范围
ArcGIS Pro SDK for .NET
找到的版本
2.3.2
操作系统
Windows OS
操作系统版本
10.0 64 Bit
修正版本
2.4
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
附加信息
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);