Get the Network Analyst extension from the application.
[C#]
//<-- 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 -->
[Visual Basic .NET]
' <-- 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 -->