Repository.UpdateScheduledTask: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
 
(One intermediate revision 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.}}
  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))

Latest revision as of 21:53, 29 October 2015