ArcObjects Library Reference (NetworkAnalyst)  

INAContextEdit.Initialize Method

Prepare the context for analysis.

[Visual Basic .NET]
Public Sub Initialize ( _
    ByVal Name As String, _
    ByVal network As IDENetworkDataset _
)
[C#]
public void Initialize (
    string Name,
    IDENetworkDataset network
);
[C++]
HRESULT Initialize(
  BSTR Name,
  IDENetworkDataset* network
);
[C++]

Parameters

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

  network is a parameter of type IDENetworkDataset

Product Availability

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

Remarks

Initialize should be called immediately after the NAContext is first created to create and initialize its internal member variables, including the workspace for the NAClasses, the NamedSet of NAAgents, the NamedSet of NAClasses, and the default NALocator .  

Note: This method should only be called by a custom solver during the creation of the NAContext.

Note: If Initialize is called on a NAContext that has already been initialized, an exception will be thrown.

See Also

INAContextEdit Interface