Click or drag to resize
ScoreInfoProviderEnsureScheduledTask Method
Returns existing scheduled task for recalculation or creates new one based on the score info and other settings.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 12.0.0
Syntax
C#
public static TaskInfo EnsureScheduledTask(
	ScoreInfo score,
	string scheduledInterval,
	DateTime nextRunTime,
	bool taskEnabled,
	bool saveNewTask
)

Parameters

score
Type: CMS.ContactManagementScoreInfo
Score info
scheduledInterval
Type: SystemString
Scheduled interval string for new task
nextRunTime
Type: SystemDateTime
Next run time for new task
taskEnabled
Type: SystemBoolean
Indicates if new task should be enabled
saveNewTask
Type: SystemBoolean
Indicates if new task should be saved (inserted into DB)

Return Value

Type: TaskInfo
See Also