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


INetworkSource Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkSource Interface

Provides access to members that specify the properties of a source in a network dataset.

Product Availability

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

Members

Description
Read/write property ElementType Network element type of this network source.
Read-only property ID Unique identifier of this network source.
Read/write property Name Name of the class associated with this network source.
Read/write property NetworkSourceDirections The driving directions settings for this network source.
Read/write property Properties Property set of this network source.
Read-only property SourceType Type of network source.
Read-only property UsesGeometryInConnectivity Indicates if the source object's geometry is used in determining network connectivity.

CoClasses that implement INetworkSource

CoClasses and Classes Description
EdgeFeatureSource A container for describing a network dataset source whose edge elements are derived from line feature geometry.
JunctionFeatureSource A container for describing a network dataset source whose junction elements are derived from point feature geometry.
NetworkSource A container for describing a network dataset source.
SDCNetworkSource (esriDataSourcesFile) A container for describing a SDC network dataset source.
SystemJunctionSource A container for describing a network dataset source where junction elements are generated automatically when the network is built.
TurnFeatureSource A container for describing a network dataset source whose elements are derived from turn feature geometry.

Remarks

The INetworkSource interface is used to access the properties of the network source, such as its name and source type.

To access the NetworkSource object for an existing network dataset source, use the Source, SourceByID, or SourceByName methods on the INetworkDataset interface.

The INetworkSource interface is also used to define a new network source.  To create a new network source, cocreate the appropriate NetworkSource object, specify its properties, and pass the object to the INetworkBuild::AddSource method on the network dataset.

.NET Samples

Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | ArcGIS Network Analyst extension barrier location editor (Code Files: EditorForm) | Subset network evaluators (Code Files: FilterSubsetEvaluator ScaleSubsetEvaluator SubsetHelper SubsetHelperUI)

.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