This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkForwardStarEx Interface > INetworkForwardStarEx.AddJunctionRestriction Method (ArcObjects .NET 10.4 SDK) |
Restricts a junction element from being returned in the adjacency queries.
[Visual Basic .NET] Public Sub AddJunctionRestriction ( _ ByVal Junction As INetworkJunction _ )
[C#] public void AddJunctionRestriction ( INetworkJunction Junction );
[C++]
HRESULT AddJunctionRestriction(
INetworkJunction* Junction
);
[C++]
Parameters Junction [in]
Junction is a parameter of type INetworkJunction
AddJunctionRestriction restricts the input junction from being used in calls to QueryAdjacencies. 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.