Repository.Task.UpdateScheduledTask

Saves all updates to a scheduled task. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
object.Task.UpdateScheduledTask(task)

where object is a variable that represents a Repository object.

Example
This example assumes that a scheduled task with ID#1 exists in the repository.

VBA MyRepository Repository MyTask cScheduledTask MyRepository.Project.SetCurrentProject(1) MyTask = MyRepository.Task.GetScheduledTask(1) MyTask.Name = MyRepository.Task.UpdateScheduledTask(MyTask)

VB.NET MyRepository Repository MyTask cScheduledTask MyRepository.Project.SetCurrentProject(1) MyTask = MyRepository.Task.GetScheduledTask(1) MyTask.Name = MyRepository.Task.UpdateScheduledTask(MyTask)