共用方式為


IFsrmClassificationManager2.CreateRule Method (_FsrmRuleType)

 

Creates a rule of the specified type.

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

Syntax

IFsrmRule CreateRule(
    _FsrmRuleType RuleType
)
IFsrmRule^ CreateRule(
    _FsrmRuleType RuleType
)
abstract CreateRule : 
        RuleType:_FsrmRuleType -> IFsrmRule
Function CreateRule (
    RuleType As _FsrmRuleType
) As IFsrmRule

Parameters

Return Value

Type: Microsoft.Storage.IFsrmRule

Returns a IFsrmRule interface to the new rule. Query the IFsrmRule interface to get the IFsrmClassificationRule interface.

To save the rule, call the Commit method.

Implements

IFsrmClassificationManager.CreateRule(_FsrmRuleType)

Remarks

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

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

See Also

IFsrmClassificationManager2 Interface
Microsoft.Storage Namespace

Return to top