Jaa


CReplicationSchedule.RunOnce Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the date and time for a nonrecurring schedule, that is, for a replication that will run only one time for a Commerce Server Staging (CSS) project.

object RunOnce { set; get; }

Return Value

A date and time value that specifies the schedule for a nonrecurring replication.

Remarks

You must have CSS administrator rights to set this property.

You can use the IsRunOnce property to determine whether this property is set and whether it contains a valid value.

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

Example

The following example specifies that the project named Test will run one time on July 4, 2007 at noon.

CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationProject replicationProject = (CReplicationProject)replicationServer.OpenProject("Test", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
CReplicationSchedule repSched = (CReplicationSchedule)replicationProject.AddSchedule();
repSched.RunOnce = "7/4/2007 12:00";
repSched.Commit();

See Also

Other Resources

CReplicationSchedule.IsRunOnce Property

CReplicationSchedule.ScheduledAction Property

CReplicationProject.AddSchedule Method

CReplicationProject.EnumSchedules Method

CReplicationSchedule Class