This method adds a route to the server’s routing table.
Syntax
ReplicationServer.AddRoute(Route)
Parameters
Route
Name of route to create.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
You can set the various route object properties, but the object is not created until you call the ReplicationRoute.Commit method on the new route.
Example
The following example creates a new default route.
Option Explicit
On Error Resume Next
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplRoute
set ReplRoute = ReplServer.AddRoute
...
'Release objects
set ReplRoute = Nothing
set ReplServer = Nothing
See Also
EnumRoutes, ReplicationRoute.Commit