共用方式為


FsrmClassificationManagerClass.EnumRules Method (_FsrmRuleType, _FsrmEnumOptions)

 

Enumerates the rules of the specified type.

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

Syntax

public virtual IFsrmCollection EnumRules(
    _FsrmRuleType RuleType,
    _FsrmEnumOptions options = _FsrmEnumOptions.FsrmEnumOptions_None
)
public:
virtual IFsrmCollection^ EnumRules(
    _FsrmRuleType RuleType,
    _FsrmEnumOptions options = _FsrmEnumOptions::FsrmEnumOptions_None
)
abstract EnumRules : 
        RuleType:_FsrmRuleType *
        options:_FsrmEnumOptions = _FsrmEnumOptions.FsrmEnumOptions_None -> IFsrmCollection
override EnumRules : 
        RuleType:_FsrmRuleType *
        options:_FsrmEnumOptions = _FsrmEnumOptions.FsrmEnumOptions_None -> IFsrmCollection
Public Overridable Function EnumRules (
    RuleType As _FsrmRuleType,
    options As _FsrmEnumOptions
) As IFsrmCollection

Parameters

Return Value

Type: Microsoft.Storage.IFsrmCollection

Returns a IFsrmCollection containing a collection of classification rules. Each item in the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmRule interface. You can then use the IFsrmRule.RuleType property to determine the rule's type. Query the IFsrmRule interface for the rule interface to use. For example, if RuleType is FsrmRuleType_Classification, query the IFsrmRule interface for the IFsrmClassificationRule interface.

The collection contains only committed rules; the collection will not contain newly created rules that have not been committed.

Implements

IFsrmClassificationManager2.EnumRules(_FsrmRuleType, _FsrmEnumOptions)

See Also

IFsrmClassificationManager2
IFsrmClassificationManager
CreateRule
GetRule
FsrmClassificationManager
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification

Return to top