This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkDirections Interface > INetworkDirections.LengthAttributeName Property (ArcObjects .NET 10.4 SDK) |
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(
BSTR* 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.