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


INAContext Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAContext Interface
ArcGIS Developer Help

INAContext Interface

Provides access to the network analysis context.

Product Availability

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

Members

Name Description
Read-only property Agents The collection of agents associated with the analysis.
Read-only property Locator The locator used for finding network locations for class items.
Read-only property NAClasses The collection of classes associated with the analysis.
Read-only property Name The name of the analysis.
Read-only property NetworkDataset The associated network dataset.
Read-only property NetworkDatasetName The associated network dataset name.
Read-only property Result The result for the analysis.
Read-only property Solver The function used for the analysis.
Read-only property SpatialReference The spatial reference of the analysis.

Classes that implement INAContext

Classes Description
NAContext The analysis and problem definition container.

Remarks

The INAContext interface can be used to obtain references to the constellation of objects used during network analysis.  This includes references to the NetworkDatasetNASolver, NAClasses, NATraversalResult, NALocator, and any extra objects that implement INAAgent

.NET Samples

Closest facility solver Export any network analysis class to a text file Location-allocation solver ArcGIS Network Analyst extension barrier location editor ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application Origin-destination cost matrix solver Route layer Service area solver Subset network evaluators Subset network evaluators Vehicle routing problem solver