IFsrmReportJob::Run method (fsrmreports.h)

Runs all the reports in the job.

Syntax

HRESULT Run(
  [in] FsrmReportGenerationContext context
);

Parameters

[in] context

Specifies to which subdirectory the reports are written. For possible values, see the FsrmReportGenerationContext enumeration.

Return value

The method returns the following return values.

Remarks

Note that reports that run in the scheduled context remain in the queue for five minutes before they are run; reports that run in the other contexts remain in the queue for 30 seconds.

If you call this method and the report job is already queued or running, the method returns an error. To determine the status of the job, access the IFsrmReportJob::RunningStatus property.

Examples

For an example, see Running a Report Job.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header fsrmreports.h
DLL SrmSvc.dll

See also

IFsrmReportJob

IFsrmReportJob::WaitForCompletion