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


INetAttributesEdit Interface (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
ArcGIS Developer Help

INetAttributesEdit Interface

Provides access to members that modify the disabled state and weight values of individual elements in the network.

Product Availability

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

When To Use

Use the INetAttributesEdit interface when you want to change the disabled state of an element in your network or when you want to modify the value of a weight.

Disabling an element means setting its DisabledState to "True".
This interface is designed specifically for the editing of a stand-alone logical network, a logical network that does not have an associated geometric network.  It is imperative that if you have a geometric network, the logical network must be edited through its associated geometric network.  You risk data corruption if you use the INetAttributesEdit interface on logical networks that have an associated geometric network.  The logical network maintains its own weight values for the purpose of faster access. Directly manipulating the weight values or Disabled state of elements in a logical network with a corresponding geometric network, will cause the weight values from the feature to be out of sync with the weight values maintained by the logical network.
For geometric networks the weight value or Disabled state should only be edited on the feature and not on the logical network element.  Use IRowBuffer::Value and IRow::Store to modify the value of a feature attribute.

Members

Name Description
Method GetDisabledState Returns the disabled state of the specified network element.
Method GetWeightValue Returns the weight value of the specified network element for the specified weight.
Method SetDisabledState Sets the disabled state of the specified network element.
Method SetWeightValue Sets the weight value of the specified network element for the specified weight.

Inherited Interfaces

Interfaces Description
INetAttributes Provides access to members that get the disabled state and weight values of individual elements in the network.

Classes that implement INetAttributesEdit

Classes Description
StreetNetwork A container for describing a street network.
UtilityNetwork A container for describing a utility network.

Remarks

You should only directly manipulate the value of a weight in a stand-alone logical network.

See Also

INetAttributes Interface | INetAttributesEdit Interface