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


INAStreetDirectionsAgent.Execute Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAStreetDirectionsAgent.Execute Method

Constructs the directions.

[Visual Basic .NET]
Public Sub Execute ( _
    ByVal set As ISet, _
    ByVal TrackCancel As ITrackCancel _
)
[C#]
public void Execute (
    ISet set,
    ITrackCancel TrackCancel
);
[C++]
HRESULT Execute(
  ISet* set,
  ITrackCancel* TrackCancel
);
[C++]

Parameters set [in]
set is a parameter of type ISet TrackCancel [in]
TrackCancel is a parameter of type ITrackCancel

Product Availability

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

Remarks

Execute is a method to compute the driving directions.  This method takes a set containing the route features that you want to generate directions for.  If null is passed in, it will generate directions for all routes.  If you want to generate directions for a subset of the routes, create a new set object and add route features from the corresponding Routes or CFRoutes network analysis class.

See Also

INAStreetDirectionsAgent Interface