Previous in Contents Next in Contents

ReplicationMethod Property

This property specifies the replication method for a project.

Syntax

ReplicationProject.ReplicationMethod

Remarks

ReplicationMethod can be any of the following:

Method Description
ACTIVE Component Deployment project (disseminates compressed application files)
PULL Internet retrieval project
SENDINET Content Deployment (push) project

Example

The following example specifies that the new project MyProject pulls Web pages from http://www.microsoft.com/ to C:\LocalCopy, going up to three levels deep,and uses the PULL replication method.

Option Explicit 
On Error Resume Next 

const CREATE_NEW_PROJECT = 1

dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")

'Create new pull project, FromMS
dim ReplProject
set ReplProject = ReplServer.OpenProject("FromMS", CREATE_NEW_PROJECT)

ReplProject.ReplicationMethod = "PULL"
ReplProject.Put("RootUrl", "http://www.microsoft.com/")
ReplProject.LocalDirectory = "C:\LocalCopy"

dim Hops
Hops = Clng(3)

ReplProject.Put("Depth", Hops)
ReplProject.Commit

'Release objects
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

Get


© 1997-2000 Microsoft Corporation. All rights reserved.