Previous in Contents Next in Contents

Description Property

This property specifies a text string description for the schedule.

Syntax

ReplicationSchedule.Description

Example

The following example adds a description to the new schedule for project Test.

Option Explicit 
On Error Resume Next 

const OPEN_EXISTING_PROJECT  = 2
const CRS_SCHEDULE_DAY_SUNDAY  = 64

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

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

dim RepSched
set RepSched = ReplProject.AddSchedule
RepSched.Days = CRS_SCHEDULE_DAY_SUNDAY
RepSched.Hour = 1
RepSched.Description = "Run every Sunday at 1AM"

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

See Also

ReplicationProject.AddSchedule, ReplicationProject.EnumSchedules


© 1997-2000 Microsoft Corporation. All rights reserved.