This method retrieves the current “type” for a task. Table 50 shows the available types.

Table 50. HRESULT GetResultType

Type

Description

0

Represents a task that succeeded

1

Represents a tasks that returned a warning

-1

Represents a failed task

 

The type is retrieved by looking at the task’s exit or error code and finding a match in the task’s <ExitCodes> XML element.

Related Topics

ITaskManager Interface