Click or drag to resize
NewsletterTasksManagerCreateOrUpdateDynamicNewsletterTask Method
Creates or updates scheduler TaskInfo object for the dynamic newsletter. If the taskToUpdate is specified, task is updated according taskInterval and newsletter. Otherwise new TaskInfo is used.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
Syntax
C#
public static TaskInfo CreateOrUpdateDynamicNewsletterTask(
	NewsletterInfo newsletter,
	TaskInterval taskInterval,
	TaskInfo taskToUpdate = null
)

Parameters

newsletter
Type: CMS.NewslettersNewsletterInfo
Dynamic newsletter
taskInterval
Type: CMS.SchedulerTaskInterval
Task interval object
taskToUpdate (Optional)
Type: CMS.SchedulerTaskInfo
Task to be updated according current taskInterval

Return Value

Type: TaskInfo
See Also