This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Statements - Get Network Analyst Extension Snippet (ArcObjects .NET 10.4 SDK) |
Get the Network Analyst extension from the application.
//<-- Snippet Start --> // DECSRIPTION: // Get the Network Analyst extension from the application ESRI.ArcGIS.NetworkAnalystUI.INetworkAnalystExtension naExtension=application.FindExtensionByName("Network Analyst") as ESRI.ArcGIS.NetworkAnalystUI.INetworkAnalystExtension; //<-- Snippet End -->
' <-- Snippet Start --> ' DECSRIPTION: ' Get the Network Analyst extension from the application Dim naExtension As ESRI.ArcGIS.NetworkAnalystUI.INetworkAnalystExtension=CType(application.FindExtensionByName("Network Analyst"), ESRI.ArcGIS.NetworkAnalystUI.INetworkAnalystExtension) ' <-- Snippet End -->