Returns the network attribute value by object ID.
[Visual Basic .NET] Public Function GetNetAttributeValue ( _ ByVal bstrAttrName As String, _ ByVal lObjectID As Integer _ ) As Object
[C#] public object GetNetAttributeValue ( string bstrAttrName, int lObjectID );
[C++]
HRESULT GetNetAttributeValue(
BSTR bstrAttrName,
long lObjectID,
VARIANT* pvtVal
);
[C++]Parameters
bstrAttrName [in] bstrAttrName is a parameter of type BSTR lObjectID [in] lObjectID is a parameter of type long pvtVal [out, retval] pvtVal is a parameter of type VARIANT
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
Returns the network attribute value for the segment ID specified.
Remarks
GetNetAttributeValue returns the values of the predefined network attribute with the name AttrName for the network segment which ID equals ObjectID.
List of supported network attributes may differ from one data set to another. Most used network attributes are "Length" and "Time". Network segments are the records of the map layer that the current routing service is based on. Very often it is a streets layer, and its records are streets segments.