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


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

INetwork Interface

Provides access to members that give general information about the network and its elements.

Product Availability

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

When To Use

Use the INetwork interface when you want to query the network for general information such as the status of the network or the number of edges in your network. You can also use this interface to create a forwardstar object, which is used for traversing the network.

Members

Name Description
Method CreateForwardStar Creates a forward star cursor on the network index.
Method CreateNetBrowser Creates a network index element browser.
Read-only property EdgeCount Number of edges in the network.
Read-only property JunctionCount Number of junctions in the network.
Read-only property MaxDegree Maximum degree of a junction.
Read-only property MaxTurn Maximum number of turns associated with a junction.
Read-only property Status Status of the network.
Read-only property TurnCount Number of turns in the network.

Classes that implement INetwork

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

Remarks

To obtain a reference to the logical network of a geometric network you first need to obtain a reference to the geometric network. An example of this can be found in the help for IGeometricNetwork.

Once you have a reference to the geometric network you can obtain a reference to the logical network using the IGeometricNetwork::Network property.

The INetwork interface is on the Network abstract class, which contains other interfaces for use with logical networks:

INetworkUpdate - Used for starting updating sessions in the logical network.
INetElements - Used for getting element ID's (EID's) and verify valid elements.
INetSchema - Used for getting element classes and in a logical network.
INetSchemaEdit - Used for editing the schema of the logical network such as adding weights.
INetAttributes - Used for getting weight values and enabled/disabled state of elements.
INetAttributesEdit - Used for changing weight values and disabled/enabling elements.
INetTopology - Used for seeing what elements are connect to another element.
INetTopologyEdit - Used for adding and deleting elements from the logical network.

See Also

INetworkUpdate Interface | IUtilityNetwork Interface | INetworkWorkspace Interface | INetwork Interface | IGraph.VertexBasedStretching Property | IForwardStar Interface | INetworkClass.GeometricNetwork Property | INetworkClass.NetworkAncillaryRole Property | INetworkClass.FieldToWeightMapping Property | IFeatureDataset Interface

.NET Samples

Custom upstream trace task Set flow by digitized direction