|
|
(3 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| {{Template:APIClass|Repository Class|Repository}}
| | #REDIRECT[[Repository.Task.UpdateScheduledTask]] |
| Updates the scheduled task
| |
| == Method Syntax ==
| |
| {{APIName|'''UpdateScheduledTask'''(}}
| |
| {{APIPrefix|ByVal}}
| |
| {{APIName|task()}}
| |
| {{APIPrefix|As}}
| |
| {{APIName|[[cScheduledTask Class|cScheduledTask]]}}
| |
| {{APIPrefix|) As Boolean}}<br>
| |
| {{APIComment|Updates the scheduled task in the repository.}}
| |
| | |
| == Parameters ==
| |
| '''task'''
| |
| {{APIComment|The scheduled task to update in the repository.}}
| |
| | |
| == 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))
| |