This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesFile > ESRI.ArcGIS.DataSourcesFile > Interfaces > IS > ISMNetAttributesAccess Interface > ISMNetAttributesAccess.GetNetAttributeValue Method (ArcObjects .NET 10.4 SDK) |
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
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.