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


INetworkForwardStarEx.AddJunctionRestriction Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkForwardStarEx.AddJunctionRestriction Method

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

Product Availability

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

Remarks

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.

See Also

INetworkForwardStarEx Interface