Jaa


CReplicationSchedule.Minute Property

Gets or sets the minute for a recurring schedule that is defined for a Commerce Server Staging (CSS) project.

object Minute { set; get; }

Return Value

A whole number between 0 and 59, inclusive. This number represents the minute component of the time of day at which the replication starts.

Remarks

You must have CSS administrator rights to set this property.

The CReplicationSchedule.Minute property corresponds to the COM property named ReplicationSchedule.Minute.

Example

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();

See Also

Other Resources

CReplicationSchedule.Hour Property

CReplicationProject.AddSchedule Method

CReplicationProject.EnumSchedules Method

CReplicationSchedule Class