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


INASolver.Solve Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INASolver Interface > INASolver.Solve Method
ArcGIS Developer Help

INASolver.Solve Method

Perform the network analysis and construct results.

[Visual Basic .NET]
Public Function Solve ( _
    ByVal NAContext As INAContext, _
    ByVal messages As IGPMessages, _
    ByVal TrackCancel As ITrackCancel _
) As Boolean
[C#]
public bool Solve (
    INAContext NAContext,
    IGPMessages messages,
    ITrackCancel TrackCancel
);
[C++]
HRESULT Solve(
  INAContext* NAContext,
  IGPMessages* messages,
  ITrackCancel* TrackCancel
);
[C++]
Parameters
NAContext [in]

NAContext is a parameter of type INAContext* messages [in]
messages is a parameter of type IGPMessages* 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

Solve performs network analysis based on the solver properties and network locations in the NAContext.

It returns :

Additionnally, Solve returns informational messages in the GPMessages object. Each GPMessage contains a description and may have an naError code. Message types returned are:

See Also

INASolver Interface

.NET Samples

Route layer