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


INetworkForwardStarEx.AddTurnRestriction Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkForwardStarEx.AddTurnRestriction Method

Restricts a turn in the adjacency queries.

[Visual Basic .NET]
Public Sub AddTurnRestriction ( _
    ByVal Turn As INetworkTurn _
)
[C#]
public void AddTurnRestriction (
    INetworkTurn Turn
);
[C++]
HRESULT AddTurnRestriction(
  INetworkTurn* Turn
);
[C++]

Parameters Turn [in]
Turn is a parameter of type INetworkTurn

Product Availability

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

Remarks

AddTurnRestriction restricts the input turn's associated traversal maneuver in the NetworkForwardStar. The RemoveElementRestrictions method can be used for removing all element-specific restrictions.

AddJunctionRestriction, AddEdgeRestriction, and AddTurnRestriction are intended as a replacement to INetworkForwardStarSetup::Traversable, as well as the related INetworkForwardStar::SetAllTraversable, INetworkForwardStarSetup::SetTraversable, and INetworkForwardStarSetup::NonTraversableElements.

See Also

INetworkForwardStarEx Interface