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


INetSchemaEdit.AddWeight Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetSchemaEdit.AddWeight Method

Adds a new weight to the network.

[Visual Basic .NET]
Public Sub AddWeight ( _
    ByVal networkWeight As INetWeight _
)
[C#]
public void AddWeight (
    INetWeight networkWeight
);
[C++]
HRESULT AddWeight(
  INetWeight* networkWeight
);
[C++]

Parameters networkWeight [in]
networkWeight is a parameter of type INetWeight

Product Availability

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

Remarks

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