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


IForwardStar.QueryAtTurns Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IForwardStar Interface > IForwardStar.QueryAtTurns Method
ArcGIS Developer Help

IForwardStar.QueryAtTurns Method

Returns the turns through which the adjacent edges found with FindAdjacent passes into the user-defined array.

[Visual Basic .NET]
Public Sub QueryAtTurns ( _
    ByVal Count As Integer, _
    ByRef adjacentTurnEIDs As Integer, _
    ByRef adjacentTurnsWeightValue As Object _
)
[C#]
public void QueryAtTurns (
    int Count,
    ref int adjacentTurnEIDs,
    ref object adjacentTurnsWeightValue
);
[C++]
HRESULT QueryAtTurns(
  long Count,
  System.Int32* adjacentTurnEIDs,
  Variant* adjacentTurnsWeightValue
);
[C++]
Parameters
Count [in]

Count is a parameter of type long adjacentTurnEIDs [out]
adjacentTurnEIDs is a parameter of type long* adjacentTurnsWeightValue [out]
adjacentTurnsWeightValue is a parameter of type VARIANT*

Product Availability

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

Description

QueryAtTurns returns an array of adjacent turns and their weights. The array has adjacentEdgesCount entries, where adjacentEdgesCount is the value returned by IForwardStar::FindAdjacent.

See also the QueryAtTurn request.

Remarks

A turn represents a movement between two adjacent edges, the from-edge and the to-edge. If you are querying turns, you must specify the fromEdgeEID in the IForwardStar::FindAdjancent request. This is from-edge of the turn.

adjacentTurnEIDs
and adjacentTurnsWeightValue are arrays that are dimensioned to at least adjacentEdgesCount , as returned by IForwardStar::FindAdjacent . Note that the MaxDegree property of INetwork will tell you the maximum number of edges for any junction, and you can use this to allocate memory for these arrays. Count is equal to adjacentEdgesCount from IForwardStar::FindAdjacent.
NOTE: Since turns in networks are not implemented, this method is not implemented.
[C#]

This method is not callable from C#.  Please use IForwardStarGEN::QueryAtTurns.

[Visual Basic .NET]

This method is not callable from VB.NET.  Please use IForwardStarGEN::QueryAtTurns.

See Also

IForwardStar Interface | IForwardStar.QueryAdjacentEdge Method | IForwardStar.QueryAdjacentJunctions Method | IForwardStar.QueryAtTurns Method | IForwardStar.QueryAtTurn Method | IForwardStar.FindAdjacent Method | IForwardStar.QueryAdjacentEdges Method | IForwardStar.Network Property | IForwardStar.QueryAdjacentJunction Method | INetwork.CreateForwardStar Method