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

INetElementBarriers Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalysis > ESRI.ArcGIS.NetworkAnalysis > Interfaces > IN > INetElementBarriers Interface
ArcGIS Developer Help

INetElementBarriers Interface

Provides access to members that specify a set of barriers for the TraceFlowSolver object. Note: the INetElementBarriers interface has been superseded by INetElementBarriers2. Please consider using the more recent version.

Product Availability

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

When To Use

Use the INetElementBarriers interface to create a set of barriers to pass to the TraceFlowSolver object.

Barriers are stopping points affecting a trace. For example, a downed powerline can be a barrier that affects a trace. Barriers do not affect the flow through a network. If you want to change the flow through a stand-alone logical network you can disable individual elements using the INetAttributesEdit::SetDisabledState method.  For geometric networks, set the INetworkFeature::Enabled property to False.


Name Description
Read/write property ElementType Type of network element on which the barriers are placed.
Read/write property Network Network on which the barrier set is placed.
Method SetBarriers Specifies a set of network features to use as barriers.

Classes that implement INetElementBarriers

Classes Description


Sets of junction barriers and edge barriers should be created seperately.


Not all members are callable from C#.  Please use INetElementBarriersGEN instead.

[Visual Basic .NET]

Not all members are callable from VB.NET.  Please use INetElementBarriersGEN instead.

See Also

INetworkAnalysisExtBarriers Interface

.NET Samples

Custom upstream trace task