This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalysis > ESRI.ArcGIS.NetworkAnalysis > Interfaces > IE > IEIDHelper Interface > IEIDHelper.AddField Method (ArcObjects .NET 10.4 SDK) |
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
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.