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


INetSchemaEdit.AddWeightAssociation 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.AddWeightAssociation Method
ArcGIS Developer Help

INetSchemaEdit.AddWeightAssociation Method

Adds a new weight association to the network.

[Visual Basic .NET]
Public Sub AddWeightAssociation ( _
    ByVal weightSource As INetWeightAssociation _
)
[C#]
public void AddWeightAssociation (
    INetWeightAssociation weightSource
);
[C++]
HRESULT AddWeightAssociation(
  INetWeightAssociation* weightSource
);
[C++]
Parameters
weightSource [in]

weightSource is a parameter of type INetWeightAssociation*

Product Availability

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

Remarks

AddWeightAssocation is used to add a new weight association to a weight already defined on the network.  A weight is defined by its name, type, and set of weight associations.  The weight associations define the table name and field name that participate in the weight.  Multiple table name and field name combinations (weight associations) can participate within a single weight.

Only use this method on newly created stand-alone logical networks that do not have any topology.

 

See Also

INetSchemaEdit Interface