CReplicationSchedule.Minute Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the minute for a recurring schedule that is defined for a Commerce Server Staging (CSS) project.
object Minute { set; get; }
A whole number between 0 and 59, inclusive. This number represents the minute component of the time of day at which the replication starts.
You must have CSS administrator rights to set this property.
The CReplicationSchedule.Minute property corresponds to the COM property named ReplicationSchedule.Minute.
The following example specifies a recurring schedule to replicate the project MyProject each Saturday at 8:30 AM.
const int Monday = 0x1;
const int Tuesday = 0x2;
const int Wednesday = 0x4;
const int Thursday = 0x8;
const int Friday = 0x10;
const int Saturday = 0x20;
const int Sunday = 0x40;
const int Daily = 0xFF;
CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationProject replicationProject = (CReplicationProject)replicationServer.OpenProject("Test", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
CReplicationSchedule repSched = (CReplicationSchedule)replicationProject.AddSchedule();
repSched.set_Days(Saturday);
repSched.set_Hour(8);
repSched.set_Minute(30);
repSched.Commit();
CReplicationSchedule.Hour Property
CReplicationProject.AddSchedule Method