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

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

INetworkFeature.Connect Method

Connect the Feature to the geometrically coincident NetworkFeature.

[Visual Basic .NET]
Public Sub Connect ( _
public void Connect (
HRESULT Connect(

Product Availability

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


All edits to features that participate in a Geometric Network must be performed within an edit session and bracketed within an edit operation.

Looping through a collection or enumeration of junctions and calling Connect on each one to establish connectivity with a complex edge feature is an expensive operation.  Calling IComplexEdgeFeature::ConnectatIntermediateVertices once on the complex edge feature will result in increased performance with the same resultant connectivity.

See Also

INetworkFeature Interface | IComplexEdgeFeature.ConnectAtIntermediateVertices Method