Repository.Task.GetAllTaskTypes

Gets a list of RCM++ or RBI task types associated with a Repository object. Returns a TaskTypeInfo object that represents a task type.

Syntax
.Task.GetAllTaskTypes

Example
This example assumes that task types have been defined in a Synthesis repository.

VBA|VB.NET MyRepository Repository ListofTaskTypes TaskTypeInfo ListofTaskTypes = MyRepository.Task.GetAllTaskTypes NumberofElements Integer NumberofElements = UBound(ListofTaskTypes) - LBound(ListofTaskTypes) + 1 MsgBox (NumberofElements)