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


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

INetworkForwardStarEx.AddRestrictionAttribute Method

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

Product Availability

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

Remarks

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.

See Also

INetworkForwardStarEx Interface