ArcObjects Library Reference

Statements - Get NAClass Snippet

Get the specified NAClass from a network analysis layer.

[C#]

// <-- Snippet Start -->
// DESCRIPTION:
// Get the specified NAClass from a network analysis layer

ESRI.ArcGIS.NetworkAnalyst.INAClass naClass = naLayer.Context.NAClasses.get_ItemByName("Stops") as ESRI.ArcGIS.NetworkAnalyst.INAClass;

//<-- Snippet End -->
[Visual Basic .NET]

' <-- Snippet Start -->
' DESCRIPTION:
' Get the specified NAClass from a network analysis layer

Dim naClass As ESRI.ArcGIS.NetworkAnalyst.INAClass = CType(naLayer.Context.NAClasses.ItemByName("Stops"),ESRI.ArcGIS.NetworkAnalyst.INAClass)

' <-- Snippet End -->


Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.NetworkAnalyst