laptop and a wrench

Erro

IIndex_Example available for C# at EDN, throws runtime exception.

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM009385
EnviadoMay 30, 2007
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.2
Idioma do programaC#
StatusNon-Reproducible

Informações Adicionais

No Public Explanation

Solução Provisória

public void IIndex_Example(IFeatureClass featureClass, string nameOfField){//get the field for which we will add the indexIFields fields = new FieldsClass();IFieldsEdit fieldsEdit = fields as IFieldsEdit;fieldsEdit.FieldCount_2 = 1;IField field = featureClass.Fields.get_Field(featureClass.Fields.FindField(nameOfField)); fieldsEdit.set_Field(0, field); //create new Index IIndex index = new IndexClass(); //cast for IindexEdit IIndexEdit indexEdit = (IIndexEdit)index; indexEdit.Fields_2 = fields; indexEdit.IsAscending_2 = false; indexEdit.IsUnique_2 = false; indexEdit.Name_2 = "Idx_1"; //add index to the feature class featureClass.AddIndex(index); }

Etapas para Reproduzir

ID do Erro: NIM009385

Software:

  • No Product Found

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