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


INASolver.CreateContext 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.CreateContext Method
ArcGIS Developer Help

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
);
[C++]
Parameters
network [in]

network is a parameter of type IDENetworkDataset* Name [in]
Name is a parameter of type BSTR

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 Samples

Closest facility solver Location-allocation solver Origin-destination cost matrix solver Service area solver Vehicle routing problem solver