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

INAClassDefinition.CandidateFieldNames Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAClassDefinition Interface > INAClassDefinition.CandidateFieldNames Property
ArcGIS Developer Help

INAClassDefinition.CandidateFieldNames Property

The field names that will be used by default for the network analyst class.

[Visual Basic .NET]
Public Function get_CandidateFieldNames ( _
    ByVal FieldName As String _
) As IStringArray
public IStringArray get_CandidateFieldNames (
    string FieldName
HRESULT get_CandidateFieldNames(
  BSTR FieldName,
  IStringArray** fieldNames
FieldName [in]

FieldName is a parameter of type BSTR fieldNames [out, retval]
fieldNames is a parameter of type IStringArray**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.


CandidateFieldNames returns an IStringArray that contains an array of field names that are used to provide hints to the NAClassFieldMap for how to map input fields to fields on the NAClass.

CandidateFieldNames will be populated with default values if this is the NAClassDefinition from a NAContext that was created with INASolver.CreateContext or had ContextChanged called on it.  For more information, see the help for NAClassDefinition.

You can set the CandidateFieldNames on the INAClassDefinitionEdit interface.

See Also

INAClassDefinition Interface