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


EngineNetworkAnalystEnvironment Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Classes > E > EngineNetworkAnalystEnvironment Class
ArcGIS Developer Help

EngineNetworkAnalystEnvironmentClass Class

A singleton object representing Engine Network Analyst environment.

Product Availability

Available with ArcGIS Engine.

Description

The EngineNetworkAnalystEnvironment object is a singleton object (only one instance of the EngineNetworkAnalystEnvironment object is supported per thread) that manages the INetworkLayer objects and the NAWindow.

The EngineNetworkAnalystEnvironment object implements the IEngineNetworkAnalystEnvironment, IEngineNetworkAnalystEnvironmentEvents, and IEngineNetworkAnalystHelper interfaces. The members of these interfaces manage the collection of network layers, the current network layer, solving and getting directions.

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IConnectionPointContainer (esriDisplay)
IEngineNetworkAnalystEnvironment Provides access to the network analyst extension.
IEngineNetworkAnalystEnvironmentEvents Provides access to events triggered by the network analysis extension.
IEngineNetworkAnalystHelper Provides access to actions that operate on the network analyst extension.
IEngineNetworkAnalystHelper2 Provides access to actions that operate on the network analyst extension.
IExtension (esriSystem) Provides access to members that define an extension.
ISupportErrorInfo (esriSystem)
IToolSelectedLayer (esriSystemUI) Provides access to members that set and get the current selected layer, which selection commands and tools works on.
EngineNetworkAnalystEnvironment is the one and only instance of its class.