ISchedulerTask::ErrorMessage property

Retrieves the task-related error message or task cancellation message.

This property is read-only.

Syntax

HRESULT get_ErrorMessage(
  [out] BSTR *pErrorMessage
);

Property value

The message.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

The message contains the last run-time error message that was set for the task. The message can also contain the reason why the user canceled the task.

Check the message if the task state is Failed or Canceled.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerTask

ISchedulerJob.ErrorMessage