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


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

INetSchemaEdit Interface

Provides access to members that modify the schema of the network.

Product Availability

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

When To Use

Use the INetSchemaEdit interface when you want to make changes to your network schema. For example, you can add a new weight and weight association to your network.
This interface is designed specifically for the editing of a stand-alone logical network, which 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 INetSchemaEdit interface on logical networks that have an associated geometric network.  For building the schema of a new geometric network, use the Build Geometric Network Wizard or the NetworkLoader object.
Changes in schema must be made when the network has no topology.  When you create a new logical network, the schema should be set up first, before any topology is added to the network.

Members

Name Description
Method AddElementClass Adds a new element class to the network.
Method AddWeight Adds a new weight to the network.
Method AddWeightAssociation Adds a new weight association to the network.
Read-only property ElementClass Element class by index.
Read-only property ElementClassByUserID Element class corresponding to the specified user class ID.
Read-only property ElementClassCount Number of element classes in the network.
Method GetAncillaryRole Returns the ancillary role type and the name of the field containing the ancillary role information.
Method GetEnabledDisabledFieldName Returns the name of the filed containing the enabled/disabled information for the specified user class.
Method PutAncillaryRole Sets the ancillary role type and the name of the field containing the ancillary role information for the specified user class.
Method PutEnabledDisabledFieldName Sets the name of the field containing the enabled/disabled information for the specified user class.
Read-only property Weight Network weight corresponding to the specified weight internal ID.
Read-only property WeightAssociations Network weight associations corresponding to the specified weight internal ID.
Read-only property WeightAssociationsByTableName Network weight associations corresponding to the specified table name.
Read-only property WeightByName Network weight corresponding to the specified name.
Read-only property WeightCount Number of weights in the network.

Inherited Interfaces

Interfaces Description
INetSchema Provides access to members that get information about the schema of the network.

Classes that implement INetSchemaEdit

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

Remarks

Adding Element Classes
The AddElementClass method should only be used for adding element classes to a stand-alone logical network.
Adding Weights
Weights can be added to a network but you do not have the ability to remove weights once they have been added.
See the help for the INetWeightEdit interface to learn how to create a NetWeight object.

See Also

INetSchemaEdit Interface | INetSchema Interface | INetWeightEdit Interface | INetWeightAssociation Interface | INetWeightAssociationEdit Interface | INetWeight Interface | NetWeight Class