다음을 통해 공유


FsrmClassificationManagerClass.CreateRule Method (_FsrmRuleType)

 

Creates a rule of the specified type.

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

Syntax

public virtual IFsrmRule CreateRule(
    _FsrmRuleType RuleType
)
public:
virtual IFsrmRule^ CreateRule(
    _FsrmRuleType RuleType
)
abstract CreateRule : 
        RuleType:_FsrmRuleType -> IFsrmRule
override CreateRule : 
        RuleType:_FsrmRuleType -> IFsrmRule
Public Overridable Function CreateRule (
    RuleType As _FsrmRuleType
) As IFsrmRule

Parameters

  • RuleType
    Type: Microsoft.Storage._FsrmRuleType

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

Return Value

Type: Microsoft.Storage.IFsrmRule

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

To save the rule, call the Commit method.

Implements

IFsrmClassificationManager2.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
IFsrmClassificationManager
EnumRules
GetRule
FsrmClassificationManager
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification

Return to top