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


ISMRouterFactory.CreateRouterCfg Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesFile > ESRI.ArcGIS.DataSourcesFile > Interfaces > IS > ISMRouterFactory Interface > ISMRouterFactory.CreateRouterCfg Method
ArcGIS Developer Help

ISMRouterFactory.CreateRouterCfg Method

Creates a SMRouter object based on additional information in the alternate routing configuration file.

[Visual Basic .NET]
Public Function CreateRouterCfg ( _
    ByVal RoutingFilePath As String, _
    ByVal ConfigPath As String _
) As SMRouter
[C#]
public SMRouter CreateRouterCfg (
    string RoutingFilePath,
    string ConfigPath
);
[C++]
HRESULT CreateRouterCfg(
  BSTR RoutingFilePath,
  BSTR ConfigPath
);
[C++]
Parameters
RoutingFilePath [in]

RoutingFilePath is a parameter of type BSTR ConfigPath [in]
ConfigPath is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The method creates SMRouter object using the alternate configuration file along with the main routing initialization file.

Remarks

The method returns an instance of the SMRouter object if successful. Otherwise it returns Nothing.


A routing initialization file, for example routing.ini or routing.rs, contains the definition of the routing service based on the specific information about routing data source.

A routing configuration file, for example routing.cfg, contains application specific information such as driving directions patterns, texts of directions parts, distance, time formats, and so on.

See Also

ISMRouterFactory Interface