ISchedulerJob::Commit method

Commits to the server any local changes to the job.

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 ISchedulerJob::ErrorMessage property.

Remarks

All changes made to the job are made locally. Call this method to apply your changes (to the job's properties) to the server. To commit updates, the job must have been previously added to the scheduler.

If the user changed a property value that the template marks as read-only, the property value is silently set to the template's default value. If the user set a property value that is outside the range of the template's constraint on that property, the method fails.

For details on the properties that you can update in the different states, see Updating a Job.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob

ISchedulerJob::Refresh

ISchedulerTask::Commit