TaskTypeInfo Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:API}}{{Template:APIBreadcrumb}}
Used with the [[Repository.GetAllTaskTypes]] to get information about all the tasks in a repository.


== Properties ==
*ID (as ''integer'') {{APIComment|Gets or sets task's numerical ID.}}
*Name (as ''string'') {{APIComment|Gets or sets the task's Name.}}
*Classification (as ''[[TaskClassEnum Enumeration|TaskClassEnum]]'') {{APIComment|Gets or sets the task's class (e.g., restorative).}}
*Abbreviation (as ''string'') {{APIComment|Gets or sets the abbreviation for the task type.}}


== Usage Example ==
<onlyinclude>Represents an RCM++/RBI task type.</onlyinclude>
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository


{{APIComment|Connect to the Synthesis repository.}}
== Properties  ==
        Dim Success As Boolean = False
{| {{APITable}}
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
|-
| style="width: 130px;"|Abbreviation||Gets or sets the abbreviation for the task. '''String'''.
|-
|Classification||Gets or sets a value from the '''[[TaskClassEnum Enumeration|TaskClassEnum]]''' enumeration, which specifies whether the task is a preventive, inspection, on condition or corrective task.
|-
|ID||Gets or sets the numeric ID of the task. '''Integer'''.
|-
|Name||Gets or sets the name of the task. '''String'''.
|}


{{APIComment|Get the list of task types in the connected repository from the current project.}}
 
        Dim ListOfTaskTypes() As TaskTypeInfo
 
        ListOfTaskTypes = MyRepository.GetAllTaskTypes()
 
 
==See Also==
*[[Repository.Task.GetAllTaskTypes|Repository.Task.GetAllTaskTypes Method]]

Latest revision as of 21:39, 24 June 2016

APIWiki.png


Member of: SynthesisAPI


Represents an RCM++/RBI task type.

Properties

Name Description
Abbreviation Gets or sets the abbreviation for the task. String.
Classification Gets or sets a value from the TaskClassEnum enumeration, which specifies whether the task is a preventive, inspection, on condition or corrective task.
ID Gets or sets the numeric ID of the task. Integer.
Name Gets or sets the name of the task. String.



See Also