Network Analysis service GetNALayerNames method
Gets an array of network analysis layers of a particular analysis type.
GetNALayerNames(esriNAServerLayerType LayerType)
Parameter |
Description |
---|---|
LayerType |
The type of network analysis layers to return. |
Return Value
A string array containing the network analysis layer names for a particular analysis type (e.g. route, closest facility, etc).
Remarks
A layer name is used by the other methods to specify which network analysis layer you want to work with.
Examples
C#
// Connect to server
NAService_NAServer naService = new NAService_NAServer();
naService.Url = "http://localhost:6080/ArcGIS/services/NetworkAnalysisService/MapServer/NAServer");
// Get Route layers
string[] routeLayers = naService.GetNALayerNames( class=codesample>esriNAServerLayerType.esriNAServerRouteLayer);
10/23/2013