This method sets a parameter for the route.
Syntax
ReplicationRoute.Put(ParamName, ParamValue)
Parameters
ParamName
The name of the parameter to set. The only parameter available is BaseDirectory, which identifies the directory from which the content is replicated.
ParamValue
The parameter value. For BaseDirectory, this must be a full pathname.
Remarks
Parameters are not set for the route until they are committed by using the ReplicationRoute.Commit method.
Example
The following example sets the value of the BaseDirectory parameter to C:\Test.
Option Explicit
On Error Resume Next
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplRoute
set ReplRoute = ReplServer.AddRoute("Test")
ReplRoute.Set("Parameter", "Value")
ReplRoute.Commit
'Release objects
set ReplRoute = Nothing
set ReplServer = Nothing
See Also