Click or drag to resize
ICampaignScheduleServiceSchedule Method
Plans the launch and finish of the specified campaign (campaign) in future.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 13.0.131
Syntax
C#
bool Schedule(
	CampaignInfo campaign,
	DateTime from,
	DateTime to,
	int siteID
)

Parameters

campaign
Type: CMS.WebAnalyticsCampaignInfo
Campaign which is scheduled.
from
Type: SystemDateTime
Planned launch (start) of the campaign.
to
Type: SystemDateTime
Planned finish (end) of the campaign.
siteID
Type: SystemInt32
ID of the site on which the campaign is scheduled.

Return Value

Type: Boolean
True if the campaign has been scheduled.
Remarks
A scheduled task is created for the campaign launch. The task is executed based on the from parameter.
See Also