Поделиться через


IFsrmClassificationManager2.RunClassification Method (_FsrmReportGenerationContext, String)

 

Runs classification rules and generates the classification report.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

void RunClassification(
    _FsrmReportGenerationContext context,
    string reserved
)
void RunClassification(
    _FsrmReportGenerationContext context,
    String^ reserved
)
abstract RunClassification : 
        context:_FsrmReportGenerationContext *
        reserved:string -> unit
Sub RunClassification (
    context As _FsrmReportGenerationContext,
    reserved As String
)

Parameters

Implements

IFsrmClassificationManager.RunClassification(_FsrmReportGenerationContext, String)

Remarks

To run classification, there must be at least one property defined, at least one rule that references one of the defined properties, and a registered classification module.

If you call this method and the classification is already queued or running, the method returns an error. To determine whether classification is running, access the ClassificationRunningStatus property. To determine whether classification was successful, access the ClassificationLastError property.

Classification generates the classification report only if reporting is enabled (see the ClassificationReportEnabled property).

To run classification on a schedule, use the Task Scheduler. Create a version 1.0 task. The command to run is C:\Windows\System32\StorRept.exe. Specify "classification run" as the arguments to StorRept.exe. StorRept.exe uses the FsrmReportGenerationContext_ScheduledReport enumeration value (see the _FsrmReportGenerationContext enumeration) for the reporting context.

FSRM does not apply the classification rule if the rule, file, and cache are valid and have not changed.

See Also

IFsrmClassificationManager2 Interface
Microsoft.Storage Namespace

Return to top