This parameter specifies the replication method for a project.
Syntax
ReplicationProject.ReplicationMethod[= Method]
Parameters
Method
The method of replicating for the project.
Method | Description |
ACTIVE | Component Deployment project |
PULL | Internet retrieval project |
SENDINET | Content Deployment project |
Remarks
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"
ReplProject.Put("Depth", "3"
ReplProject.Commit
'Release objects
set ReplProject = Nothing
set ReplServer = Nothing
See Also