This document is archived and information here might be outdated. Recommended version. |
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
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.