This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Classes > N > NAContext CoClass (ArcObjects .NET 10.5 SDK) |
The analysis and problem definition container.
Interfaces | Description |
---|---|
IConnectionPointContainer | Supports connection points for connectable objects. |
INAContext | Provides access to the network analysis context. |
INAContextEdit | Provides access to the editable properties of a network analysis context. |
IPersistStream (esriSystem) |
Interfaces | Description |
---|---|
INAContextEvents (default) | Provides access to events triggered by the network analysis context. |
INAContextEvents2 | Provides access to events triggered by the network analysis context. |
The NAContext is the center of the constellation of objects that are used during network analysis.
The NAContext is initially created by calling CreateContext on the INASolver interface of a network solver object. It is then generally accessed by getting the Context property from the INALayer interface on the NALayer object. The INAContext interface can be used to obtain references to the NetworkDataset, NASolver, NAClasses, NATraversalResult, NALocator, and any extra objects that implement INAAgent. The INAContextEdit interface is used to set up some of the internal references to objects and to manage edit operations within the NAClasses. The INAContextEvents interface is an outgoing interface that notifies clients when the NAContext is modified.
When working with NAContext's default outbound interface in Visual Basic 6 declare variables as follows:
Private WithEvents pNAContext as NAContext
When implementing INAContextEvents2 declare variables as follows:
Private WithEvents pNAContextEvents2 as NAContextEvents2