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


IEIDHelper.AddField Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

IEIDHelper.AddField Method

Adds a field to the list of fields to return with the feature.

[Visual Basic .NET]
Public Sub AddField ( _
    ByVal field As String _
)
[C#]
public void AddField (
    string field
);
[C++]
HRESULT AddField(
  BSTR field
);
[C++]

Parameters field [in] field is a parameter of type BSTR

Product Availability

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

Remarks

Feature objects returned by this EIDHelper object are meant only for querying attribute values from the features and not for editing the features.  These feature objects will only contain those fields specified using AddField.  For optimization purposes, if no calls are made to AddField before calling CreateEnumEIDInfo, the feature objects returned will only contain the OID and Shape fields.

See Also

IEIDHelper Interface