ArcObjects Library Reference (GeoDatabase)  

INetTopologyEdit.AddEdgeByEndEIDs Method

Adds an edge element to the logical network between the specified junction elements.

[Visual Basic .NET]
Public Function AddEdgeByEndEIDs ( _
    ByVal edgeDescription As INetElementDescription, _
    ByVal FromJunctionEID As Integer, _
    ByVal ToJunctionEID As Integer _
) As Integer
[C#]
public int AddEdgeByEndEIDs (
    INetElementDescription edgeDescription,
    int FromJunctionEID,
    int ToJunctionEID
);
[C++]
HRESULT AddEdgeByEndEIDs(
  INetElementDescription* edgeDescription,
  long FromJunctionEID,
  long ToJunctionEID,
  long* edgeEID
);
[C++]

Parameters

edgeDescription [in]

  edgeDescription is a parameter of type INetElementDescription

FromJunctionEID [in]   FromJunctionEID is a parameter of type long ToJunctionEID [in]   ToJunctionEID is a parameter of type long edgeEID [out, retval]   edgeEID is a parameter of type long

Product Availability

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

Remarks

AddEdgeByEndEIDs adds a new edge between the specified junctions.  The value returned by AddEdgeByEndEIDs is the Element ID (EID) for the newly created edge. This value is unique.

Define the parameters of the edge to add in the INetElementDescription object that you pass in.

Only use this method on stand-alone logical networks.

See Also

INetTopologyEdit Interface