This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkForwardStarEx Interface > INetworkForwardStarEx.AddTurnRestriction Method (ArcObjects .NET 10.4 SDK) |
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
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.