ArcObjects Library Reference (NetworkAnalyst)  

INAServer2.GetSolverParameters2 Method

Default solver parameters for the specified network analysis layer.

[Visual Basic .NET]
Public Function GetSolverParameters2 ( _
    ByVal NALayerName As String, _
    ByVal LayerToken As String, _
    ByVal PopulateNAClasses As Boolean _
) As INAServerSolverParams
[C#]
public INAServerSolverParams GetSolverParameters2 (
    string NALayerName,
    string LayerToken,
    bool PopulateNAClasses
);
[C++]
HRESULT GetSolverParameters2(
  BSTR NALayerName,
  BSTR LayerToken,
  VARIANT_BOOL PopulateNAClasses,
  INAServerSolverParams** NAServerSolverParams
);
[C++]

Parameters

NALayerName [in]   NALayerName is a parameter of type BSTR LayerToken [in]   LayerToken is a parameter of type BSTR PopulateNAClasses [in]   PopulateNAClasses is a parameter of type VARIANT_BOOL NAServerSolverParams [out, retval]

  NAServerSolverParams is a parameter of type INAServerSolverParams

Product Availability

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

Remarks

GetSolverParameters2 returns the  NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams, NAServerLocationAllocationParams, NAServerODCostMatrixParams, NAServerVRPParams) corresponding to the NALayerName and LayerToken passed in. if PopulateNAClasses was set to True, returned NAServerSolverParams instance will contain correspondent recordsets populated with content of NAClasses.

 

As opposed to GetSolverParameters, NAServerSolverParams instance returned by GetSolverParameters2 does not contain MapDescription and ImageDescription populated, which significantly reduces response size.

 

You can pass this resulting object into the Solve method on NAServer to perform network analysis.

 

LayerToken can be obtained from NAServerSolverResults object if the instance of NAServerSolverParams previously passed to the Solve method had SaveLayerOnServer set to True.

 

This method can be useful when, for example, multiple clients are working with a shared network analysis layer stored on server, or shared layer originally was created and saved on server by another client process.

See Also

INAServer2 Interface