IFsrmClassificationManager::CreateRule method (fsrmpipeline.h)

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

Creates a rule of the specified type.

Syntax

HRESULT CreateRule(
  [in]  FsrmRuleType ruleType,
  [out] IFsrmRule    **Rule
);

Parameters

[in] ruleType

The type of rule to create, set this parameter to FsrmRuleType_Classification. For more information, see FsrmRuleType.

[out] Rule

An IFsrmRule interface to the new rule. Query the IFsrmRule interface to get the interface to get the IFsrmClassificationRule interface.

To save the rule, call IFsrmRule::Commit method.

Return value

The method returns the following return values.

Remarks

There is no limit to the number of rules that you can create. Use the IFsrmRule.ModuleDefinitionName property to associate the rule with a classification module.

FSRM cannot guarantee the order in which the rules are run.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header fsrmpipeline.h (include FsrmPipeline.h, FsrmTlb.h)
DLL SrmSvc.dll

See also

FsrmClassificationManager

IFsrmClassificationManager

IFsrmClassificationManager2

IFsrmClassificationManager::EnumRules

IFsrmClassificationManager::GetRule

MSFT_FSRMClassification