This document is archived and information here might be outdated.  Recommended version.


IGPFieldInfo.AddField Method (ArcObjects .NET 10.6 SDK)
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 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