Previous in Contents Next in Contents

ScheduledAction Property

This property specifies which type of replication is performed by the project.

Syntax

ReplicationSchedule.ScheduledAction

Remarks

The defined actions are as follows:

Action Value Description
CRS_SCHEDULE_APPLY 1 Apply changes but don't replicate content.
CRS_SCHEDULE_REPLICATE 2 Replicate content.

Example

The following example applies the changes to the schedule for project MyTest, but does not replicate any content.

Option Explicit 
On Error Resume Next 

const OPEN_EXISTING_PROJECT  = 2
const CRS_SCHEDULE_APPLY   = 1

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

dim ReplProject
set ReplProject = ReplServer.OpenProject("MyTest", OPEN_EXISTING_PROJECT)

dim RepSched
set RepSched = ReplProject.AddSchedule

'Set up the schedule
...
'Save the changes
RepSched.ScheduledAction = CRS_SCHEDULE_APPLY

'Release object
set Sched       = Nothing
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

ReplicationProject.AddSchedule, ReplicationProject.EnumSchedules


© 1997-2000 Microsoft Corporation. All rights reserved.