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.QueryTurn Method (ArcObjects .NET 10.5 SDK) |
Queries the index'th network turn element anchored at this network junction element.
[Visual Basic .NET] Public Sub QueryTurn ( _ ByVal Index As Integer, _ ByVal Turn As INetworkTurn _ )
[C#] public void QueryTurn ( int Index, INetworkTurn Turn );
[C++]
HRESULT QueryTurn(
long Index,
INetworkTurn* Turn
);
[C++]
Parameters Index [in] Index is a parameter of type long Turn [in]
Turn is a parameter of type INetworkTurn
The QueryTurn method retrieves the turn element anchored to this junction at the specified index. A turn element is anchored at a junction if the last two edges of the turn pass through the junction. The index values range from 0 to (TurnCount - 1).
This method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.