Previous in Contents Next in Contents

Put Method

This method sets a property for the route.

Syntax

ReplicationRoute.Put(ParamName, ParamValue)

Parameters

ParamName

The name of the property to set. The only property available is BaseDirectory, which identifies the directory from which the content is replicated.

ParamValue

The property value. For BaseDirectory, this must be a full path name.

Remarks

Properties 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 property 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

BaseDirectory, Get


© 1997-2000 Microsoft Corporation. All rights reserved.