IFsrmReportScheduler::ModifyScheduleTask method (fsrmreports.h)
[Starting with Windows Server 2012 this method is not supported; use the MSFT_FSRMScheduledTask WMI class to manage scheduled tasks.]
Modifies a task that is used to trigger a report job.
Syntax
HRESULT ModifyScheduleTask(
[in] BSTR taskName,
[in] VARIANT *namespacesSafeArray,
[in] BSTR serializedTask
);
Parameters
[in] taskName
The name of a Task Scheduler task to modify. The string is limited to 230 characters.
[in] namespacesSafeArray
A VARIANT that contains a SAFEARRAY of local directory paths to verify (see Remarks). Each element of the array is a variant of type VT_BSTR. Use the bstrVal member of the variant to set the path.
[in] serializedTask
An XML string that defines the Task Scheduler job. For details, see Task Scheduler Schema.
Return value
The method returns the following return values.
Remarks
Specify the same namespaces for this method that you specified for the IFsrmReportJob::NamespaceRoots property. This method validates the namespace paths. For validation details, see the Remarks section of IFsrmReportScheduler::VerifyNamespaces.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrmreports.h (include FsrmReports.h, FsrmTlb.h) |
DLL | SrmSvc.dll |