ArcObjects Library Reference (Geoprocessing)  

IGPFieldInfo.AddField Method

Add a field to the field info object.

[Visual Basic .NET]
Public Sub AddField ( _
    ByVal fieldIndex As Integer, _
    ByVal fieldName As String, _
    ByVal newFieldName As String, _
    ByVal Visible As Boolean, _
    ByVal split As esriGPFieldInfoSplitRule _
)
[C#]
public void AddField (
    int fieldIndex,
    string fieldName,
    string newFieldName,
    bool Visible,
    esriGPFieldInfoSplitRule split
);
[C++]
HRESULT AddField(
  long fieldIndex,
  BSTR fieldName,
  BSTR newFieldName,
  VARIANT_BOOL Visible,
  esriGPFieldInfoSplitRule split
);
[C++]

Parameters

fieldIndex [in]   fieldIndex is a parameter of type long fieldName [in]   fieldName is a parameter of type BSTR newFieldName [in]   newFieldName is a parameter of type BSTR Visible [in]   Visible is a parameter of type VARIANT_BOOL split [in]

  split is a parameter of type esriGPFieldInfoSplitRule

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IGPFieldInfo Interface