Share via


CReplicationProject.AddSchedule Method

Adds a new schedule to the Commerce Server Staging (CSS) project.

object AddSchedule ()

Return Value

A new CReplicationSchedule object that is associated with the project.

Remarks

You must have CSS administrator rights to call this method.

The CReplicationProject.AddSchedule method corresponds to the COM method named ReplicationProject.AddSchedule.

Example

The following example adds a new schedule to the project named MyProject.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");

  CReplicationProject replicationProject = (CReplicationProject)replicationServer.OpenProject("MyProject", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
  CReplicationSchedule replicationSchedule;
  replicationSchedule = (CReplicationSchedule)replicationProject.AddSchedule();
  // ...

See Also

Other Resources

Projects

Schedules

How to Create and Modify a Staging Project

How to Manage Staging Schedules

CReplicationProject.EnumSchedules Method

CReplicationSchedule Class

CReplicationProject Class