IFsrmFileManagementJob::Run method (fsrmreports.h)

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

Runs the job.

Syntax

HRESULT Run(
  [in] FsrmReportGenerationContext context
);

Parameters

[in] context

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

Return value

The method returns the following return values.

Remarks

Since the file management job consumes the results of classification, running the file management job also runs classification.

The jobs are run asynchronously. Jobs that run in the scheduled context remain in the queue for five minutes before they are run; jobs that run in the other contexts remain in the queue for 30 seconds. To block your code until the job completes, calling the IFsrmFileManagementJob::WaitForCompletion method. Calling WaitForCompletion removes the job from the queue and runs it immediately.

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

Requirements

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

See also

IFsrmFileManagementJob

MSFT_FSRMFileManagementJob