This method commits changes for a route.
Syntax
ReplicationRoute.Commit
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
This method commits changes made to the route properties. This method must be called when creating a new route. Prior to this call, the required BaseDirectory route property must be set.
Example
The following example commits the new route Test for an endpoint server.
Option Explicit
On Error Resume Next
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplRoute
set ReplRoute = ReplServer.AddRoute("Test")
'Set the required parameter
Rep.BaseDirectory="D:\INETPUB\WWWROOT"
ReplRoute.Commit
'Release objects
set ReplRoute = Nothing
set ReplServer = Nothing
See Also
ReplicationServer.AddRoute, ReplicationServer.EnumRoutes