ISchedulerJob::NotifyOnCompletion property

Gets or sets whether you want to receive an email notification when then job ends.

This property is read/write.

Syntax

HRESULT put_NotifyOnCompletion(
  [in]          VARIANT_BOOL pRetVal
);

HRESULT get_NotifyOnCompletion(
  [out, retval] VARIANT_BOOL *pRetVal
);

Property value

A VARIANT_BOOL that specifies whether you want to receive an email notification when then job ends. VARIANT_TRUE indicates that you want to receive an email notification when then job ends. VARIANT_FALSE indicates that you do not want to receive email an notification when then job ends.

Error codes

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

Remarks

A job ends and an email notification is sent when the state of the job changes to Finished, Failed, or Canceled.

A cluster administrator must configure the email notification feature before you can receive an email notification about a job.

By default, you do not receive an email notification when a job ends.

Requirements

Product

HPC Pack 2008 R2 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob

ISchedulerJob::NotifyOnStart