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


NAServerDataLayer Class (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Classes > N > NAServerDataLayer Class
ArcGIS Developer Help

NAServerDataLayerClass Class

Deprecated as of 10.0. A container that references a data layer containing network locations.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
INAServerDataLayer Deprecated as of 10.0. Provides access to a data layer containing network locations.
INAServerLocations Deprecated as of 10.0. Provides access to objects that can be used to load network locations in NAServer.
INAServerLocations2 Deprecated as of 10.0. Provides access to objects that can be used to load network locations in NAServer.
IPersist (esriSystem)
IPersistStream (esriSystem)
ISupportErrorInfo (esriSystem)
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.
IXMLVersionSupport (esriSystem) Provides access to members that help in serializing an object to different namespaces (versions).

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.

The NAServerDataLayer object is used to load network locations.

The NAServerDataLayer object implements the INAServerDataLayer interface and can be passed in to any of the properties of the NAServerSolverParams objects that expect an INAServerLocations interface pointer. (for example, Stops, Barriers, Facilities, or Incidents).

If the data layer contains the network location fields "SourceID" (int), "SourceOID" (int), "PosAlong" (double), and "SideOfEdge" (int), the values in these fields will specify the network location rather than perform a spatial search to determine the network location.

Any other fields can be in the data layer and can be used when loading network locations. What fields map to NAClass fields is a function of INAServerSolverParams.NAClassCandidateFieldMaps.