ArcObjects Library Reference (NetworkAnalyst)  

INAServerRecordSet Interface

Provides access to a RecordSet containing network locations.

Product Availability

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

Members

Description
Read/write property RecordSet The recordset containing the records to load into the analysis.

Inherited Interfaces

Interfaces Description
INAServerLocations Provides access to objects that can be used to load network locations in NAServer.

CoClasses that implement INAServerRecordSet

CoClasses and Classes Description
NAServerRecordSet A container for a RecordSet of network locations.

Remarks

The INAServerRecordSet interface provides access to a RecordSet object representing network locations.

The NAServerRecordSet object that implements this interface 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.

At a minimum, the RecordSet needs a shape field with a correct geometry type.  You can also add additional fields that you wish to be used when loading the network locations.  For example, if you specify 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 performing a spatial search to determine the network location.

Any other fields can be added to the RecordSet and may be used when loading network locations.  What fields map to NAClass fields is a function of INAServerSolverParams.NAClassCandidateFieldMaps .

.NET Samples

Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Route application using the NAServer extension in ArcGIS Server via a GIS client (Code Files: Route_GISClientClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) |