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


INetElementBarriers2 Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

INetElementBarriers2 Interface

Provides access to members that specify a set of barriers by EIDs for the TraceFlowSolver object.

Product Availability

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

When To Use

Use the INetElementBarriers2 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.

Members

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.
Method SetBarriersByEID Specifies a set of network element IDs to use as barriers.

Inherited Interfaces

Interfaces Description
INetElementBarriers Provides access to members that specify a set of barriers for the TraceFlowSolver object.

Remarks

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

[C#]

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.