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


INetworkDirections.LengthAttributeName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkDirections Interface > INetworkDirections.LengthAttributeName Property
ArcGIS Developer Help

INetworkDirections.LengthAttributeName Property

The name of the network attribute to be used for reporting travel distances.

[Visual Basic .NET]
Public Property LengthAttributeName As String
[C#]
public string LengthAttributeName {get; set;}
[C++]
HRESULT get_LengthAttributeName(
  System.String* Name
);
[C++]
HRESULT put_LengthAttributeName(
  BSTR Name
);
[C++]
Parameters
Name [out, retval]

Name is a parameter of type BSTR* Name [in]
Name is a parameter of type BSTR

Product Availability

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

Remarks

The LengthAttributeName property is the attribute that will be used for distance measurements.  The attribute must have a units value from the esriNetworkAttributeUnits enumeration that corresponds to a distance measurement and must be a Cost attribute.  This does not have to be same value as specified in the DefaultOutputLengthUnits property.  This property is required for Direction generation.

See Also

INetworkDirections Interface