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


IForwardStar.QueryAdjacentEdge 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.QueryAdjacentEdge Method
ArcGIS Developer Help

IForwardStar.QueryAdjacentEdge Method

Returns index'th adjacent edge found with FindAdjacent, its orientation, and its weight value.

[Visual Basic .NET]
Public Sub QueryAdjacentEdge ( _
    ByVal Index As Integer, _
    ByRef adjacentEdgeEID As Integer, _
    ByRef reverseOrientation As Boolean, _
    ByRef adjacentEdgeWeightValue As Object _
)
[C#]
public void QueryAdjacentEdge (
    int Index,
    ref int adjacentEdgeEID,
    ref bool reverseOrientation,
    ref object adjacentEdgeWeightValue
);
[C++]
HRESULT QueryAdjacentEdge(
  long Index,
  System.Int32* adjacentEdgeEID,
  Boolean* reverseOrientation,
  Variant* adjacentEdgeWeightValue
);
[C++]
Parameters
Index [in]

Index is a parameter of type long adjacentEdgeEID [out]
adjacentEdgeEID is a parameter of type long* reverseOrientation [out]
reverseOrientation is a parameter of type bool* adjacentEdgeWeightValue [out]
adjacentEdgeWeightValue is a parameter of type VARIANT*

Product Availability

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

Remarks

Index is a number between 0 and n-1, where n is the number of adjacent edges returned by FindAdjacent. AdjacentEdgeWeightValue is the value of the weight specified in the CreateForwardStar method of the INetwork interface.

ReverseOrientation is TRUE if the edge "enters" the junction. That is, the junction specified in FindAdjacent is the "to-junction" of the returned edge. ReverseOrientation will be FALSE if the edge "leaves" the junction - it is the "from-junction" of the returned edge. When ReverseOrientation is TRUE, the weight value returned will be the pToFromEdgeWeight specified in INetwork::CreateForwardStar method. When FALSE, the value is the pFromToEdgeWeight specified.

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