ArcObjects Library Reference (GeoDatabase)  

INetAttributesEdit.SetWeightValue Method

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

[Visual Basic .NET]
Public Sub SetWeightValue ( _
    ByVal EID As Integer, _
    ByVal ElementType As esriElementType, _
    ByVal weightInternalID As Integer, _
    ByVal weightValue As Object _
)
[C#]
public void SetWeightValue (
    int EID,
    esriElementType ElementType,
    int weightInternalID,
    object weightValue
);
[C++]
HRESULT SetWeightValue(
  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 [in]   weightValue is a parameter of type VARIANT

Product Availability

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

Remarks

SetWeightValue will update the attribute value defined by the specified weight for the specified element.  Use this method when you want to change the attribute setting a weight will use during tracing routines.

Only use this method on stand-alone logical networks.  For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.

See Also

INetAttributesEdit Interface