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

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

INetSchemaEdit.AddWeight Method

Adds a new weight to the network.

[Visual Basic .NET]
Public Sub AddWeight ( _
    ByVal networkWeight As INetWeight _
public void AddWeight (
    INetWeight networkWeight
HRESULT AddWeight(
  INetWeight* networkWeight
networkWeight [in]

networkWeight is a parameter of type INetWeight*

Product Availability

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


AddWeight will add a new weight to the network.  A weight is used to qualify traces through the features in a network.  Add a weight to your network when you want tracing to be based on attributes values of the features in the network.

Only use this method to add a weight to a newly created stand-alone logical network that does not have any topology.

See the help for the INetWeightEdit interface to learn how to create a NetWeight object.

See Also

INetSchemaEdit Interface