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


INetAttributes.GetWeightValue Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetAttributes.GetWeightValue Method

Returns the weight value of the specified network element for the specified weight.

[Visual Basic .NET]
Public Function GetWeightValue ( _
    ByVal EID As Integer, _
    ByVal ElementType As esriElementType, _
    ByVal weightInternalID As Integer _
) As Object
[C#]
public object GetWeightValue (
    int EID,
    esriElementType ElementType,
    int weightInternalID
);
[C++]
HRESULT GetWeightValue(
  long EID,
  esriElementType ElementType,
  long weightInternalID,
  VARIANT* weightValue
);
[C++]

Parameters EID [in] EID is a parameter of type long ElementType [in]
ElementType is a parameter of type esriElementType weightInternalID [in] weightInternalID is a parameter of type long weightValue [out, retval] weightValue is a parameter of type VARIANT

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

GetWeightValue will return the attribute value for the specified element based on the specified weight.

 

See Also

INetAttributes Interface