|
|
Line 1: |
Line 1: |
| {{Template:APIClass|Repository Class|Repository}}
| | #REDIRECT[[Repository.Task.UpdateScheduledTask]] |
| {{Template:Repository.UpdateScheduledTask.Cmt}} {{Template:BooleanReturn.Cmt}}
| |
| | |
| == Syntax ==
| |
| *UpdateScheduledTask( task{{APIPrefix|As}}[[cScheduledTask Class|cScheduledTask]] ){{APIPrefix|As Boolean}}
| |
| | |
| Parameters
| |
| :''task'': The [[cScheduledTask Class|cScheduledTask]] to update.
| |
| | |
| == Usage Example ==
| |
| {{APIComment|'Declare a new repository connection object.}}
| |
| Dim MyRepository As New Repository
| |
|
| |
| {{APIComment|'Connect to the Synthesis repository.}}
| |
| Dim Success As Boolean = False
| |
| Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
| |
|
| |
| {{APIComment|'Get the list of scheduled tasks from the current project.}}
| |
| Dim ListOfScheduledTasks() As [[cScheduledTask Class|cScheduledTask]]
| |
| ListOfScheduledTasks = MyRepository.GetAllScheduledTasks()
| |
|
| |
| {{APIComment|'After updating the task, update the repository.}}
| |
| Dim SuccessUpdateScheduledTask As Boolean = False
| |
| SuccessUpdateScheduledTask = MyRepository.UpdateScheduledTask(ListOfScheduledTasks(0))
| |