CReplicationSchedule.Project Property
Gets of sets the name of the Commerce Server Staging (CSS) project for which the schedule is defined.
object Project { set; get; }
Return Value
A text string that contains the name of the project.
Remarks
You must have CSS administrator rights to set this property.
By default, this property is set to the name of project that was used to create the CReplicationSchedule object.
The CReplicationSchedule.Project property corresponds to the COM property named ReplicationSchedule.Project.
Example
The following example defines a recurring apply time schedule for the project named Test. The apply time is defined to start 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.set_ScheduledAction(CSS_SCHEDULE_ACTION.CSS_SCHEDULE_APPLY);
repSched.set_Project("Test");
repSched.Commit();
Console.WriteLine("Schedule for project {0} created.", repSched.get_Project());
See Also
Other Resources
CReplicationProject.AddSchedule Method