Interface IIndexEdit
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that modify the index.
[Guid("2063FD02-4CE0-11D1-89DB-006097AFF44E")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IIndexEdit : IIndex
Remarks
The IIndexEdit interface is used when creating new indexes. You cannot use IIndexEdit to modify an existing index—to do this, delete and re-create it. IIndexEdit operates in a similar way to IFieldEdit.
When changing indexes on a table in a multi-user environment, you should first gain an exclusive schema lock on the table. See the section on ISchemaLock for more details.
When using C# (and other .NET languages) you must append an "_2" to the property you want to set on this interface. For example, indexEdit.Name_2 = "NewIndexName".
When using VB.NET (and other .NET languages) you must
append an "_2" to the property you want to set on this interface.
For example, indexEdit.Name_2 = "NewIndexName".
Properties
Fields
IFields Fields { get; }
Property Value
Fields_2
The fields collection for this index.
IFields Fields_2 { set; }
Property Value
Remarks
<P>Each table in a database has an ordered collection of fields, there is always at least one field in a table. The ordered collection behaves like a list, so it is possible to access individual fields by a numbered position (or index) in the list.</P> <P>A <STRONG>Fields </STRONG>collection can also exist independently of a table, for example when creating an index on a table you will need to define which fields take part in the index. There are many interfaces which either require or return a <STRONG>Fields </STRONG>collection; these include <STRONG>IClass </STRONG>(therefore also <STRONG>IObjectClass </STRONG>and <STRONG>IFeatureClass</STRONG>), <STRONG>ICursor</STRONG>, <STRONG>IIndex</STRONG>, <STRONG>IFeatureClassDraw</STRONG>, <STRONG>IRowBuffer</STRONG>, <STRONG>ISimpleDataConverter</STRONG>, <STRONG>ITableSort </STRONG>and <STRONG>IValidate</STRONG>.</P>
IsAscending
bool IsAscending { get; }
Property Value
Remarks
IsAscending_2
Indicates if the index is to be ascending.
bool IsAscending_2 { set; }
Property Value
IsUnique
bool IsUnique { get; }
Property Value
IsUnique_2
Indicates if the index is to be unique.
bool IsUnique_2 { set; }
Property Value
Name
string Name { get; }
Property Value
Remarks
ArcGIS imposes a limit on the length of 16 characters on the length of attribute index names. This limit is based on the smallest allowable length within supported databases in order to facilitate distribution and sharing of data between different geodatabases.
Giving a shapefile index a name will apply the name to the index in memory, but the name will not be persisted to disk. On subsequent occasions when the indexes are opened, they will have system-defined names.
Name_2
The name of the index.
string Name_2 { set; }