ArcObjects Library Reference (NetworkAnalyst)  

INASolver.CreateContext Method

Creates the analysis context for the solver.

[Visual Basic .NET]
Public Function CreateContext ( _
    ByVal network As IDENetworkDataset, _
    ByVal Name As String _
) As INAContext
[C#]
public INAContext CreateContext (
    IDENetworkDataset network,
    string Name
);
[C++]
HRESULT CreateContext(
  IDENetworkDataset* network,
  BSTR Name,
  INAContext** NAContext
);
[C++]

Parameters

network [in]

  network is a parameter of type IDENetworkDataset

Name [in]   Name is a parameter of type BSTR NAContext [out, retval]

  NAContext is a parameter of type INAContext

Product Availability

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

Remarks

CreateContext creates an NAContext for a network analyst solver.

See Also

INASolver Interface

.NET Snippets

Create OD Cost Matrix Layer | Create Route Layer | Create Vehicle Routing Problem Layer | Create Service Area Layer | Create Location Allocation Layer | Create Closest Facility Layer |

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Service area solver (Code Files: frmServiceAreaSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) |