Previous in Contents Next in Contents

Get Method

This method retrieves a global property for the Content Deployment service.

Syntax

ReplicationServer.Get(ParamName)

Parameters

ParamName

The name of the property to retrieve. Property 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 properties that can be retrieved from Content Deployment, see the Global Properties appendix.

Example

The following example displays the value of the TransactionMethod property 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


© 1997-2000 Microsoft Corporation. All rights reserved.