laptop and a wrench

Erro

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

Última Publicação: June 29, 2018 ArcGIS Runtime SDK
Número de ID do Erro BUG-000112996
EnviadoApril 5, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK
Versão encontrada100.2.0
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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()); } } ```

Etapas para Reproduzir

ID do Erro: BUG-000112996

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download