Interface IFields

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that return information about the fields.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("6B2072E3-23F7-11D1-89D8-006097AFF44E")]
public interface IFields

Remarks

The IFields interface provides information about a Fields collection and also provides access to individual fields. When using IFields::FindField, remember that there are equivalent methods on IClass and ICursor—they are shortcuts which save you having to get the Fields collection.

When programming with ArcMap, there is a distinction between IFields and two other interfaces, ILayerFields and ITableFields. ILayerFields is particular to an ArcMap layer, so for example, an alias name belongs to the field as defined in that layer rather than being stored with the underlying table.

Properties

Field[int]

The field at the specified index in the fields collection.

IField Field[int Index] { get; }

Parameters

Index int

Property Value

IField

FieldCount

The number of fields in the fields collection.

int FieldCount { get; }

Property Value

int

Remarks

FieldCount is a one-based index. Therefore if you want to use IFields::FieldCount to get a particular index and use IFields::Field to get the field at the particular index, you will need to convert FieldCount to a zero-based index.

Methods

FindField(string)

Finds the index of the named field in the fields collection.

int FindField(string Name)

Parameters

Name string

Returns

int

Remarks

If
FindField returns -1, the Field could not be found in the Fields
collection.

Developers working with
SDE should be aware of qualified field names and their impact on
calls to FindField. For more information, see the IFields2
interface.

FindFieldByAliasName(string)

Finds the index of the field with the alias name in the fields collection.

int FindFieldByAliasName(string Name)

Parameters

Name string

Returns

int

FindFieldIgnoreQualification(ISQLSyntax, string, out int)

Finds the index of a field given a particular SQLSyntax workspace.

void FindFieldIgnoreQualification(ISQLSyntax sqlSyntax, string Name, out int Index)

Parameters

sqlSyntax ISQLSyntax
Name string
Index int