This document is archived and information here might be outdated. Recommended version. |
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
);
[C++] Parameters bstrAttrName [in]
bstrAttrName is a parameter of type BSTR lObjectID [in]
lObjectID is a parameter of type long
Returns the network attribute value for the segment ID specified.
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.