laptop and a wrench

漏洞

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

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM009385
已提交May 30, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
编程语言C#
状态Non-Reproducible

附加信息

No Public Explanation

解决办法

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

重现步骤

漏洞 ID: NIM009385

软件:

  • No Product Found

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项