This document is archived and information here might be outdated.  Recommended version.


ISMNetAttributesAccess.GetNetAttributeValue Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesFile > ESRI.ArcGIS.DataSourcesFile > Interfaces > IS > ISMNetAttributesAccess Interface > ISMNetAttributesAccess.GetNetAttributeValue Method
ArcGIS Developer Help

ISMNetAttributesAccess.GetNetAttributeValue Method

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

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.

See Also

ISMNetAttributesAccess Interface