ArcObjects Library Reference (DataSourcesFile)  

ISMRouterFactory.CreateRouter Method

Creates a SMRouter object based on information in the input routing initialization file.

[Visual Basic .NET]
Public Function CreateRouter ( _
    ByVal RoutingFilePath As String _
) As SMRouter
public SMRouter CreateRouter (
    string RoutingFilePath
HRESULT CreateRouter(
  BSTR RoutingFilePath,
  ISMRouter** pIRouter


RoutingFilePath [in]   RoutingFilePath is a parameter of type BSTR pIRouter [out, retval]

  pIRouter is a parameter of type ISMRouter

Product Availability

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


The method creates a SMRouter object reading necessary information from the routing initialization file that is passed in.


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

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

See Also

ISMRouterFactory Interface