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

INAStreetDirectionsAgent.DirectionsContainer Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAStreetDirectionsAgent Interface > INAStreetDirectionsAgent.DirectionsContainer Property
ArcGIS Developer Help

INAStreetDirectionsAgent.DirectionsContainer Property

The container for the directions.

[Visual Basic .NET]
Public ReadOnly Property DirectionsContainer As INAStreetDirectionsContainer
public INAStreetDirectionsContainer DirectionsContainer {get;}
HRESULT get_DirectionsContainer(
  INAStreetDirectionsContainer** container
container [out, retval]

container is a parameter of type INAStreetDirectionsContainer**

Product Availability

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


DirectionsContainer provides access to the directions contents and a method to save the contents in a file in XML format.


For example:

INAStreetDirectionsAgent streetAgent = naContext.Agents.get_ItemByName("StreetDirectionsAgent") as INAStreetDirectionsAgent;
INAStreetDirectionsContainer directionsContainer = streetAgent.DirectionsContainer;
[Visual Basic .NET]

For example:

Dim streetAgent As INAStreetDirectionsAgent = naContext.Agents.ItemByName("StreetDirectionsAgent")
Dim directionsContainer As INAStreetDirectionsContainer = streetAgent.DirectionsContainer

See Also

INAStreetDirectionsAgent Interface