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


NAStreetDirectionsAgent CoClass (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

NAStreetDirectionsAgent CoClass

Generates driving directions for network analysis results.

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
INAAgent Provides access to properties/methods common to all network analysis agents.
INAStreetDirectionsAgent Provides access to the Directions Agent.
INAStreetDirectionsAgent2 Provides access to the Directions Agent.
INAStreetDirectionsAgent3 Provides access to the INAStreetDirectionsAgent3 Interface.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.

Remarks

The NAStreetDirectionsAgent object generates driving directions on a route or multiple routes.

You get the NAStreetDirectionsAgent from the NAContext's list of agents using the name "StreetDirectionsAgent".  For example:

Set pStreetAgent=NAContext.Agents.ItemByName("StreetDirectionsAgent")