Repository.UpdateScheduledTask: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.UpdateScheduledTask" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
 
(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))

Latest revision as of 21:53, 29 October 2015