This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFields Interface > IFields.FieldCount Property (ArcObjects .NET 10.5 SDK) |
The number of fields in the fields collection.
[Visual Basic .NET] Public ReadOnly Property FieldCount As Integer
[C#] public int FieldCount {get;}
[C++]
HRESULT get_FieldCount(
long* numFields
);
[C++]
Parameters numFields [out, retval] numFields is a parameter of type long
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.