This method adds a schedule to the project.
Syntax
ReplicationProject.AddSchedule
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
This method returns a ReplicationSchedule object.
Example
The following example adds a new schedule to the project MyProject.
Option Explicit
On Error Resume Next
const OPEN_EXISTING_PROJECT = 2
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplProject
set ReplProject = ReplServer.OpenProject("MyProject", OPEN_EXISTING_PROJECT)
dim RepSched
set RepSched = ReplProject.AddSchedule
...
'Release objects
set ReplSched = Nothing
set ReplProject = Nothing
set ReplServer = Nothing
See Also