This method sets a global parameter for Content Deployment.
Syntax
ReplicationServer.Put(ParamName, ParamValue)
Parameters
ParamName
The name of the parameter to set. Parameter names are not case sensitive.
ParamValue
The parameter value.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
Parameters are cached locally and are not applied to the Content Deployment service until you call the ReplicationServer.Commit method.
For a list of parameters that can be retrieved from Content Deployment, see the Parameters appendix.
Note You must explicitly cast any whole number value that you assign to a global parameter to a 32-bit (long) integer with CLng(), as shown in the following example.
Example
The following example sets the Depth parameter (the depth of the replication) to 3.
Option Explicit
On Error Resume Next
dim ReplServer, Depth
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
Depth = Clng(3)
ReplServer.Put("Depth", Depth)
ReplServer.Commit
'Release Server object
set ReplServer = Nothing
See Also