Repository.Task.GetAllTaskTypes

Returns an array of TaskTypeInfo objects that represent the RCM++ or RBI task types associated with the Repository object.

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)