Repository.Task.AddCorrectiveTask: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.AddCorrectiveTask" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
Adds a corrective task
{{Template:Repository.AddCorrectiveTask.Cmt}} {{Template:BooleanReturn.Cmt}}
== Method Syntax==
==Syntax==
{{APIName|'''AddCorrectiveTask'''(}}
*AddCorrectiveTask( task {{APIPrefix|As}} [[cCorrectiveTask Class|cCorrectiveTask]]{{APIPrefix|) As Boolean}}
{{APIPrefix|ByVal}}
{{APIName|task()}}
{{APIPrefix|As}}
{{APIName|[[cCorrectiveTask Class|cCorrectiveTask]]}}
{{APIPrefix|) As Boolean}}<br>
{{APIComment|Saves the corrective task in the repository.}}


== Parameters ==
Parameters
'''task'''
:'task'': The [[cCorrectiveTask Class|cCorrectiveTask]] to add.
{{APIComment|The new corrective task to add to the repository.}}


== Usage Example ==
== Usage Example ==

Revision as of 18:06, 27 February 2014


Saves the corrective task in the repository. Returns True if successful, otherwise returns False.

Syntax

Parameters

'task: The cCorrectiveTask to add.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Declare a new cCorrectiveTask.

       Dim newCorrectiveTask As New cCorrectiveTask("NewCorrectiveTask1")

After creating the task, update the repository

       Dim SuccessAddCorrectiveTask As Boolean = False
       SuccessAddCorrectiveTask = MyRepository.AddCorrectiveTask(newCorrectiveTask)