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


INAServer Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAServer Interface

Deprecated as of 10.0. Provides access to methods that perform network analysis in a stateless environment within a MapServer.

Product Availability

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

Members

Description
Method GetNALayerNames Array of network analysis layers of a particular analysis type.
Method GetNetworkDescription Description of the network dataset associated with the specified network analysis layer.
Method GetSolverParameters Default solver parameters for the specified network analysis layer.
Method Solve Perform network analysis based on the input solve parameters.

CoClasses that implement INAServer

CoClasses and Classes Description
NAServer Deprecated as of 10.0. A MapServer object extension for performing network analysis within a stateless environment.
NAServerIP Deprecated as of 10.0. NAServer Proxy for IP Messages.
NAServerLP Deprecated as of 10.0. NAServer Proxy for LAN messages.

Remarks

At version 10.1, ArcGIS for Server no longer supports performing network analysis via local connections using the GISServer and GISClient APIs. Use the SOAP or REST API instead.

INAServer has been superseded by INAServer2.

[C#]

This example illustrates connecting to an NAServer web service via a web reference and getting the names of the route layers.

// Assumes you've created a web reference to web service named "SanFrancisco"
SanFrancisco_NAServer pNAServer=new SanFrancisco_NAServer();
pNAServer.Url="http://localhost:6080/arcgis/services/SanFrancisco/MapServer/NAServer";

// Use NAServer to get analysis layer names
string[] routeLayerNames=pNAServer.GetNALayerNames(esriNAServerLayerType.esriNAServerRouteLayer);

.NET Related Topics

Programming with server objects | Server