|
|
(2 intermediate revisions by one other user not shown) |
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 class.}}
| |
| Private WithEvents 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 in the connected repository 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))
| |