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

IGraph.Add Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGraph Interface > IGraph.Add Method
ArcGIS Developer Help

IGraph.Add Method

Adds the preexisting Feature to the graph.

[Visual Basic .NET]
Public Sub Add ( _
    ByVal NewFeature As IFeature _
public void Add (
    IFeature NewFeature
  IFeature* NewFeature
NewFeature [in]

NewFeature is a parameter of type IFeature*

Product Availability

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


The IGraph:Add method is meant for internal use only. 

There is no need to call INetworkFeature::CreateNetworkElements or INetworkFeature::Connect as these are handled internally by IFeature::Store

See Also

IGraph Interface