ArcObjects Library Reference (GeoDatabase)  

INetworkDataset Interface

Provides access to members that query the schema of the network dataset.

Product Availability

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

Members

Description
Read-only property Attribute Network dataset attribute by index.
Read-only property AttributeByID Network dataset attribute corresponding to the specified ID.
Read-only property AttributeByName Network dataset attribute corresponding to the specified name.
Read-only property AttributeCount Number of attributes in the network dataset.
Read-only property Buildable Indicates if this network dataset is buildable.
Read-only property NetworkType The type of the network dataset.
Read-only property Source Network dataset source by index.
Read-only property SourceByID Network dataset source corresponding to the specified ID.
Read-only property SourceByName Network dataset source corresponding to the specified name.
Read-only property SourceCount Number of sources in the network dataset.
Read-only property State Indicates whether the network dataset is built or not.
Read-only property SupportsTurns Indicates if this network dataset supports network turn elements.

CoClasses that implement INetworkDataset

CoClasses and Classes Description
NetworkDataset A container for querying information about a network dataset.

Remarks

A NetworkDataset is a collection of feature classes that participate in a network relationship. Each feature class has a topological role in the network and a network may have multiple feature classes in the same role. A feature dataset may have multiple networks but a feature class can only belong to one network, either a network dataset or geometric network. A Feature class in the network dataset is called a network source.  Network datasets may also have attributes which are used for solving against a network dataset.  Network dataset sources can also participate within a Topology.

The IDatasetContainer2 interface should be used for creating and opening network datasets.  The INetworkBuild interface should be used for adding or removing sources or attributes from a network dataset and for building a network dataset.

.NET Snippets

Create Vehicle Routing Problem Layer | Create Route Layer | Create Service Area Layer | Display Network Adjacency in MessageBox | Create Closest Facility Layer | Create OD Cost Matrix Layer | Create Location Allocation Layer | Open Network Dataset

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Subset network evaluators (Code Files: AddSubsetAttributesCommand AutoUpdateNetworkElementArrayParametersCommand FilterSubsetEvaluator RemoveSubsetAttributesCommand ScaleSubsetEvaluator SubsetHelperUI) | Route layer (Code Files: Program)

.NET Related Topics

How to access source features referenced by a network dataset | How to create a multimodal network dataset | How to create a network dataset | How to open a network dataset