This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkJunction Interface > INetworkJunction.QueryEdge Method (ArcObjects .NET 10.5 SDK) |
Queries the index'th network edge element adjacent to this network junction element.
[Visual Basic .NET] Public Sub QueryEdge ( _ ByVal Index As Integer, _ ByVal leavingJunction As Boolean, _ ByVal Edge As INetworkEdge _ )
[C#] public void QueryEdge ( int Index, bool leavingJunction, INetworkEdge Edge );
[C++]
HRESULT QueryEdge(
long Index,
VARIANT_BOOL leavingJunction,
INetworkEdge* Edge
);
[C++]
Parameters Index [in] Index is a parameter of type long leavingJunction [in] leavingJunction is a parameter of type VARIANT_BOOL Edge [in]
Edge is a parameter of type INetworkEdge
The QueryEdge method retrieves the edge element adjacent to this junction at the specified index. The index values range from 0 to (EdgeCount - 1).
The leavingJunction parameter determines in which travel direction the edge element is returned. If the leavingJunction parameter is True, then the edge element returned is the element that travels in the direction away from the junction.
This method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the INetworkQuery::CreateNetworkElement method.