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


INAClassFieldMap.DefaultValue Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAClassFieldMap.DefaultValue Property

The default field value for a given input field name.

[Visual Basic .NET]
Public Function get_DefaultValue ( _
    ByVal FieldName As String _
) As Object
[Visual Basic .NET]
Public Sub set_DefaultValue ( _
    ByVal FieldName As String, _
    ByVal Value As Object _
)
[C#]
public object get_DefaultValue (
    string FieldName
);
[C#]
public void set_DefaultValue (
    string FieldName,
    object Value
);
[C++]
HRESULT get_DefaultValue(
  BSTR FieldName,
  VARIANT* Value
);
[C++]
HRESULT put_DefaultValue(
  BSTR FieldName,
  VARIANT Value
);
[C++]

Parameters FieldName [in] FieldName is a parameter of type BSTR Value [out, retval] Value is a parameter of type VARIANT FieldName [in] FieldName is a parameter of type BSTR Value [in] Value is a parameter of type VARIANT

Product Availability

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

Remarks

The DefaultValue property specifies a constant value for a field mapping from an input class specified by FieldName.  If the MappedField property isn't specified, or the value retrieved from the input feature in NULL, then the specified DefaultValue will be used as the value for that feature/row.

Setting DefaultValue only requires a value of type object.  If a value with an invalid type is specified, then DefaultValue will be ignored.

See Also

INAClassFieldMap Interface