This method sets a global property for Content Deployment.
Syntax
ReplicationServer.Put(PropName, PropValue)
Parameters
PropName
The name of the property to set. Property names are not case-sensitive.
PropValue
The property value.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
Properties 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 property to a 32-bit (long) integer with CLng(), as shown in the following example.
Example
The following example sets the Depth property (the depth of the replication) to 3.
Option Explicit
On Error Resume Next
dim ReplServer, Hops
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
Hops = Clng(3)
ReplServer.Put("Depth", Hops)
ReplServer.Commit
'Release Server object
set ReplServer = Nothing
See Also