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


INetElementBarriersGEN.SetBarriers Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

INetElementBarriersGEN.SetBarriers Method

Specifies a set of network features to use as barriers.

[Visual Basic .NET]
Public Sub SetBarriers ( _
    ByVal UserClassID As Integer, _
    ByRef userIDs As Int32[]& _
)
[C#]
public void SetBarriers (
    int UserClassID,
    ref Int32[]& userIDs
);
[C++]
HRESULT SetBarriers(
  long UserClassID,
  SAFEARRAY(System.Int32)* userIDs
);
[C++]

Parameters UserClassID [in]
UserClassID is a parameter of type long userIDs [in]
userIDs is a parameter of type SAFEARRAY(long)*

Product Availability

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

Remarks

The Network and ElementType properties must be set before calling SetBarriers.

See Also

INetElementBarriersGEN Interface

.NET Related Topics

NetworkAnalysis