This document is archived and information here might be outdated. Recommended version. |
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(
System.Int32* 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.