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


INetworkForwardStarAdjacencies.QueryTurn Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkForwardStarAdjacencies.QueryTurn Method

Queries the turn element that passes through the fromEdge, the atJunction, and the adjacent edge at the specified index.

[Visual Basic .NET]
Public Sub QueryTurn ( _
    ByVal Index As Integer, _
    ByVal adjacentTurn As INetworkTurn _
)
[C#]
public void QueryTurn (
    int Index,
    INetworkTurn adjacentTurn
);
[C++]
HRESULT QueryTurn(
  long Index,
  INetworkTurn* adjacentTurn
);
[C++]

Parameters Index [in] Index is a parameter of type long adjacentTurn [in]
adjacentTurn is a parameter of type INetworkTurn

Product Availability

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

Remarks

The QueryTurn method returns the turn element that traverses from the fromEdge through the atJunction to the QueryEdge edge element at the specified index.  The QueryTurn method does not always return a turn element -- to determine if a turn element will be returned, call the HasTurn property using the same index value.

The index values range from 0 to (Count - 1).

The QueryTurn 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.

See Also

INetworkForwardStarAdjacencies Interface