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


INetElementBarriers.SetBarriers Method (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 > INetElementBarriers.SetBarriers Method
ArcGIS Developer Help

INetElementBarriers.SetBarriers Method

Specifies a set of network features to use as barriers.

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

UserClassID is a parameter of type long Count [in]
Count is a parameter of type long userIDs [in]
userIDs is a parameter of type long*

Product Availability

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

Remarks

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

[C#]

This method is not callable from C#.  Please use INetElementBarriersGEN::SetBarriers.

[Visual Basic .NET]

This method is not callable from VB.NET.  Please use INetElementBarriersGEN::SetBarriers.

See Also

INetElementBarriers Interface