ADSJob class
The Save method saves changes made to the job. These changes are not reflected in the Scheduler itself until Save is also called for the session.
C++ |
hr=job->Save() |
VB |
job.Save |
The following error codes are commonly encountered with this method. See the Error Codes topic for additional error-handling information.
ADS_E_ACCESS_DENIED |
The UseSystemAccount property is set, but the client does not have permission to schedule jobs under the system account. A user account must be specified instead. |
ADS_E_DUPLICATE_DESCRIPTION |
Another job already exists with the same Description. Each job must have a unique description. |
ADS_E_DUPLICATE_ADT |
Another job already exists with the same ApplicationDefinedTag. Each job must have a unique tag. |