This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkForwardStarEx Interface > INetworkForwardStarEx.AddRestrictionAttribute Method (ArcObjects .NET 10.5 SDK) |
Adds a restriction network attribute to the NetworkForwardStar object to filter elements from adjacency queries.
[Visual Basic .NET] Public Sub AddRestrictionAttribute ( _ ByVal Attribute As INetworkAttribute _ )
[C#] public void AddRestrictionAttribute ( INetworkAttribute Attribute );
[C++]
HRESULT AddRestrictionAttribute(
INetworkAttribute* Attribute
);
[C++]
Parameters Attribute [in]
Attribute is a parameter of type INetworkAttribute
The AddRestrictionAttribute method adds a NetworkAttribute to the NetworkForwardStar object. This prevents network elements that have a value of True for this attribute from being returned by the forward star in QueryAdjacencies. This is useful when performing a network analysis only on those network elements that permit travel.
Only a NetworkAttribute with a UsageType of esriNAUTRestriction can be added to the NetworkForwardStar as a restriction.