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


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

INetSolver.DisableElementClass Method

Sets an element class as disabled within this solver.

[Visual Basic .NET]
Public Sub DisableElementClass ( _
    ByVal classID As Integer _
)
[C#]
public void DisableElementClass (
    int classID
);
[C++]
HRESULT DisableElementClass(
  long classID
);
[C++]
Parameters
classID [in]

classID is a parameter of type long

Product Availability

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

Remarks

There is no means to reenable an element class that you have disabled with this method. For enabling and disabling element classes for tracing operations use INetworkAnalysisExtBarriers::SetDisabledLayer.

See Also

INetSolver Interface