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


INetworkQuery.QueryEdge Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkQuery.QueryEdge Method

Performs a network edge element query by element ID and edge direction and populates the given edge element object.

[Visual Basic .NET]
Public Sub QueryEdge ( _
    ByVal EID As Integer, _
    ByVal Direction As esriNetworkEdgeDirection, _
    ByVal Edge As INetworkEdge _
)
[C#]
public void QueryEdge (
    int EID,
    esriNetworkEdgeDirection Direction,
    INetworkEdge Edge
);
[C++]
HRESULT QueryEdge(
  long EID,
  esriNetworkEdgeDirection Direction,
  INetworkEdge* Edge
);
[C++]

Parameters EID [in] EID is a parameter of type long Direction [in]
Direction is a parameter of type esriNetworkEdgeDirection Edge [in]
Edge is a parameter of type INetworkEdge

Product Availability

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

Remarks

The QueryEdge method requires an instantiated NetworkEdge object to be passed in as a parameter.  You can create an empty NetworkEdge object by using the CreateNetworkElement method.

See Also

INetworkQuery Interface

.NET Samples

ArcGIS Network Analyst extension barrier location editor (Code Files: EditorForm)