WaitResult Reference
An object of type WaitResult is returned by the main WaitForTasks method to
describe the task that completed, if any. The properties of a WaitResult
object are read-only, and are described below.
Typically only the HasCompletion property is used. The
GetTaskRunInfoXML method of the main object is usually used in preference to the
other WaitResult properties, since it provides more information.
bHasCompletion = WaitResult.HasCompletion
| Returns |
True if this object describes a task that has completed, else False
if WaitForTasks timed out or otherwise failed to find a task
completion.
The remaining properties of WaitResult are valid only if
HasCompletion is True.
|
TaskID = WaitResult.TaskID
| Returns |
the ID of the task that has just completed. |
TaskName = WaitResult.TaskName
| Returns |
the name of the task that has just completed. |
TaskErrorCode = WaitResult.TaskErrorCode
| Returns |
the task error code of the completed task. 0 means no error. |
TaskErrorDescription = WaitResult.TaskErrorDescription
| Returns |
the task error description of the completed task. This will be
"" if there was no error. |
TaskNominalStartTime = WaitResult.TaskNominalStartTime
| Returns |
the nominal date and time the task started, in the format YYYY-MM-DD
HH:MM:SS. If the task was started by the scheduler, the actual
start time will probably be shortly after this time, due to the fact
that the scheduler evaluates tasks only once per minute. |
TaskTimeEnded = WaitResult.TaskTimeEnded
| Returns |
the date and time the task ended, in the format YYYY-MM-DD HH:MM:SS. |