FsrmClassificationManagerClass.RunClassification Method (_FsrmReportGenerationContext, String)
Runs classification rules and generates the classification report.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
public virtual void RunClassification(
_FsrmReportGenerationContext context,
string reserved
)
public:
virtual void RunClassification(
_FsrmReportGenerationContext context,
String^ reserved
)
abstract RunClassification :
context:_FsrmReportGenerationContext *
reserved:string -> unit
override RunClassification :
context:_FsrmReportGenerationContext *
reserved:string -> unit
Public Overridable Sub RunClassification (
context As _FsrmReportGenerationContext,
reserved As String
)
Parameters
context
Type: Microsoft.Storage._FsrmReportGenerationContextSpecifies the report subdirectory to which the classification report is written. For possible values, see the F_FsrmReportGenerationContext enumeration. To set the report directory, call the SetOutputDirectory method.
reserved
Type: System.StringMust be NULL.
Implements
IFsrmClassificationManager2.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 reporting context.
FSRM does not apply the classification rule if the rule, file, and cache are valid and have not changed.
See Also
IFsrmClassificationManager2
IFsrmClassificationManager
FsrmClassificationManager
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification
Return to top