This method retrieves a global parameter for the Content Deployment service.
Syntax
ReplicationServer.Get(ParamName)
Parameters
ParamName
The name of the parameter to retrieve. Parameter names are not case sensitive.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
For a list of parameters that can be retrieve from Content Deployment, see the Parameters appendix.
Example
The following example displays the value of the TransactionMethod parameter for the Test staging server.
Option Explicit
On Error Resume Next
const STAGER = 1
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim Iterator
Iterator = 0
dim ReplError
dim Server
dim Name
do while True
'Clear any error text
Err.Clear
set Server = ReplServer.EnumServers(Iterator, STAGER)
if IsEmpty(ReplServer) then exit do
'Quit if "No more items" error
ReplError = Err.Number
if ReplError = CRS_ERROR_NO_MORE_ITEMS then exit do
Name = ReplServer.Name
if Name = "Test" then
dim TransMethod
TransMethod = ReplServer.Get("TransactionMethod")
if TransMethod = True then
Wscript.Echo "Test has transaction processing."
else
Wscript.Echo "Test does not have transaction processing."
end if
endif
Loop
'Release objects
set Server = Nothing
set ReplServer = Nothing
See Also
ServerName, Put, UseTransactions