TaskTypeInfo Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
 
(8 intermediate revisions by the same user 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 a numerical ID.}}
*Name (as ''string'') {{APIComment|Gets or sets a Name.}}
*Classification (as ''[[TaskClassEnum Enumeration|TaskClassEnum]]'') {{APIComment|Gets or sets a task class (e.g., preventive).}}
*Abbreviation (as ''string'') {{APIComment|Gets or sets an abbreviation for a task type.}}


== Usage Example ==
<onlyinclude>Represents an RCM++/RBI task type.</onlyinclude>
{{APIComment|'Declare a new repository connection object.}}
 
  Dim MyRepository As New Repository
== Properties  ==
 
{| {{APITable}}
{{APIComment|'Connect to the Synthesis repository.}}
|-
  Dim Success As Boolean = False
| style="width: 130px;"|Abbreviation||Gets or sets the abbreviation for the task. '''String'''.
  Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
|-
 
|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.
{{APIComment|'Get the list of task types in the connected repository from the current project.}}
|-
  Dim ListOfTaskTypes() As TaskTypeInfo
|ID||Gets or sets the numeric ID of the task. '''Integer'''.
  ListOfTaskTypes = MyRepository.GetAllTaskTypes()
|-
|Name||Gets or sets the name of the task. '''String'''.
|}
 
 
 
 
 
==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