This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAContextEdit Interface > INAContextEdit.Initialize Method (ArcObjects .NET 10.4 SDK) |
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
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.