Partager via


IFsrmClassificationManager2.GetRule Method (String, _FsrmRuleType)

 

Retrieves the specified rule.

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

Syntax

IFsrmRule GetRule(
    string ruleName,
    _FsrmRuleType RuleType
)
IFsrmRule^ GetRule(
    String^ ruleName,
    _FsrmRuleType RuleType
)
abstract GetRule : 
        ruleName:string *
        RuleType:_FsrmRuleType -> IFsrmRule
Function GetRule (
    ruleName As String,
    RuleType As _FsrmRuleType
) As IFsrmRule

Parameters

  • ruleName
    Type: System.String

    The name of the rule to retrieve. The name must not exceed 100 characters in length.

Return Value

Type: Microsoft.Storage.IFsrmRule

Returns a IFsrmRule interface to the retrieved rule. Query the IFsrmRule interface to get the interface for the specified type. For example, if the value of the RuleType parameter is FsrmRuleType_Classification, query the IFsrmRule interface for the IFsrmClassificationRule interface.

Implements

IFsrmClassificationManager.GetRule(String, _FsrmRuleType)

See Also

IFsrmClassificationManager2 Interface
Microsoft.Storage Namespace

Return to top