ArcObjects Library Reference (NetworkAnalysis)  

INetElementBarriers Interface

Provides access to members that specify a set of barriers for the TraceFlowSolver object. Note: the INetElementBarriers interface has been superseded byINetElementBarriers2. 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.


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.


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 (Code Files: CustomUpstreamTraceTaskVBNet)