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


INetAttributesEdit.SetWeightValue Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetAttributesEdit Interface > INetAttributesEdit.SetWeightValue Method
ArcGIS Developer Help

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