This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGraph Interface > IGraph.Add Method (ArcObjects .NET 10.5 SDK) |
Adds the preexisting Feature to the graph.
[Visual Basic .NET] Public Sub Add ( _ ByVal NewFeature As IFeature _ )
[C#] public void Add ( IFeature NewFeature );
[C++]
HRESULT Add(
IFeature* NewFeature
);
[C++]
Parameters NewFeature [in]
NewFeature is a parameter of type IFeature
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