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


INALayer.LayerByNAClassName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALayer Interface > INALayer.LayerByNAClassName Property
ArcGIS Developer Help

INALayer.LayerByNAClassName Property

The network analysis layer by class name.

[Visual Basic .NET]
Public Function get_LayerByNAClassName ( _
    ByVal Name As String _
) As ILayer
[C#]
public ILayer get_LayerByNAClassName (
    string Name
);
[C++]
HRESULT get_LayerByNAClassName(
  BSTR Name,
  ILayer** layer
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR layer [out, retval]
layer is a parameter of type ILayer**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

Returns the sublayer of the NALayer that is referencing an NAClass with the name passed in.  The following list shows valid values for each solver:

NARouteSolver

  • Stops
  • Barriers
  • PolygonBarriers
  • PolylineBarriers
  • Routes

NAServiceAreaSolver

NAClosestFacilitySolver

NAODCostMatrixSolver

NAVRPSolver

NALocationAllocationSolver

See Also

INALayer Interface