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


NAContext Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Classes > N > NAContext Class
ArcGIS Developer Help

NAContextClass Class

The analysis and problem definition container.

Product Availability

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

Interfaces

Interfaces Description
IConnectionPointContainer (esriDisplay)
INAContext Provides access to the network analysis context.
INAContextEdit Provides access to the editable properties of a network analysis context.
INAContextEvents Provides access to events triggered by the network analysis context.
INAContextEvents2 Provides access to events triggered by the network analysis context.
IPersistStream (esriSystem)

Remarks

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 NetworkDatasetNASolver, 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.