ISchedulerTask::Commit method

Commits the local task changes to the server.

Syntax

HRESULT Commit();

Parameters

This method has no parameters.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ErrorMessage task property.

Remarks

All changes made to the task are made locally. Call this method to apply your changes to the server.

To make changes to a task, the task and job must be in the Configuring state; you cannot make changes to the task after the job has been submitted.

Examples

For an example, see Cloning a Job.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerTask

ISchedulerTask::Refresh

ISchedulerJob::Commit