laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM009385
EnvoiMay 30, 2007
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeC#
StatutNon-Reproducible

Informations supplémentaires

No Public Explanation

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM009385

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement