Repository.Task.UpdateScheduledTask

Updates the properties of an existing scheduled task in the current project. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Task.UpdateScheduledTask(task)

Parameters
task
 * The cScheduledTask object to be updated.

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)