laptop and a wrench

漏洞

IdentifyLayerResult does not maintain the same order of the attributes of the GeoElement as in the geodatabase.

上次发布: June 29, 2018 ArcGIS Runtime SDK
漏洞 ID 编号 BUG-000112996
已提交April 5, 2018
上次修改时间June 5, 2024
适用范围ArcGIS Runtime SDK
找到的版本100.2.0
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Will Not Be Addressed

附加信息

The current behavior is by-design: the order of keys in a dictionary is not guaranteed in .NET. For more information see https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=netframework-4.7.1#remarks "For purposes of enumeration, each item in the dictionary is treated as a KeyValuePair structure representing a value and its key. The order in which the items are returned is undefined." Instead, if the data should be presented to the user in a specific order, then the field attribute values should be requested by Key. For example the BUG reproducer code can be modified: ``` foreach (var geoelement in result.GeoElements) { foreach (var field in ((FeatureLayer)result.LayerContent).FeatureTable.Fields) { Debug.WriteLine(string.Format("{0}: ",field.Name) + geoelement.Attributes[field.Name]?.ToString()); } } ```

重现步骤

漏洞 ID: BUG-000112996

软件:

  • ArcGIS Runtime SDK

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项