This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Statements - Get NAClass Snippet (ArcObjects .NET 10.4 SDK) |
Get the specified NAClass from a network analysis layer.
// <-- 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 -->
' <-- 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 -->