ArcObjects Library Reference (NetworkAnalyst)  

INAClassFieldMap.MappedField Property

The output field name mapped to a given input field name.

[Visual Basic .NET]
Public Function get_MappedField ( _
    ByVal FieldName As String _
) As String
[Visual Basic .NET]
Public Sub set_MappedField ( _
    ByVal FieldName As String, _
    ByVal MappedField As String _
)
[C#]
public string get_MappedField (
    string FieldName
);
[C#]
public void set_MappedField (
    string FieldName,
    string MappedField
);
[C++]
HRESULT get_MappedField(
  BSTR FieldName,
  BSTR* MappedField
);
[C++]
HRESULT put_MappedField(
  BSTR FieldName,
  BSTR MappedField
);
[C++]

Parameters

FieldName [in]   FieldName is a parameter of type BSTR MappedField [out, retval]   MappedField is a parameter of type BSTR FieldName [in]   FieldName is a parameter of type BSTR MappedField [in]   MappedField is a parameter of type BSTR

Product Availability

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

Remarks

The MappedField method sets or gets a matching between a field on an input class and a field in a NAClass. Once a valid mapping is established and INAClassLoader::Load occurs, values from the input class field are loaded into the NAClass field.

Since there is no input class or NAClass specified in the NAClassFieldMap object, there is no validation on the field names. When load INAClassLoader::Load occurs, if no field is found in either the NAClass or the input class that match the fields specified in MappedField, then the mapping is ignored.

The FieldName parameter specifies the name of the field in the NAClass. The MappedField parameter specifies the name of the field in the input class from which you plan on loading.

Something to keep in mind is that a NAClass is of type Class, so it could be used to supply input rows, as well.

See Also

INAClassFieldMap Interface

.NET Samples

Route layer (Code Files: Program) |