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
- Facilities
- Barriers
- PolygonBarriers
- PolylineBarriers
- SAPolygons
- SALines
NAClosestFacilitySolver
- Incidents
- Facilities
- Barriers
- PolygonBarriers
- PolylineBarriers
- CFRoutes
NAODCostMatrixSolver
- Origins
- Destinations
- Barriers
- PolygonBarriers
- PolylineBarriers
- ODLines
NAVRPSolver
- Orders
- Depots
- Routes
- DepotVisits
- Breaks
- RouteZones
- RouteSeedPoints
- RouteRenewals
- Specialties
- OrderPairs
- Barriers
- PolygonBarriers
- PolylineBarriers
NALocationAllocationSolver
- Facilities
- DemandPoints
- Barriers
- PolygonBarriers
- PolylineBarriers
- LALines