IFsrmClassificationManager::EnumRules 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.]
Enumerates the rules of the specified type.
Syntax
HRESULT EnumRules(
[in] FsrmRuleType ruleType,
[in] FsrmEnumOptions options,
[out] IFsrmCollection **Rules
);
Parameters
[in] ruleType
The type of rules to enumerate. For possible values, see the FsrmRuleType enumeration.
[in] options
One or more options for enumerating the property definitions. For possible values, see the FsrmEnumOptions enumeration.
[out] Rules
An IFsrmCollection interface that contains 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.
Return value
The method returns the following return values.
Requirements
Requirement | Value |
---|---|
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
IFsrmClassificationManager::CreateRule