IFsrmClassificationManager::GetRule 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.]
Retrieves the specified rule.
Syntax
HRESULT GetRule(
[in] BSTR ruleName,
[in] FsrmRuleType ruleType,
[out] IFsrmRule **Rule
);
Parameters
[in] ruleName
The name of the rule to retrieve. Must not exceed 100 characters in length.
[in] ruleType
The type of the rule to retrieve. For possible types, see the FsrmRuleType enumeration.
[out] Rule
An IFsrmRule interface to the retrieved rule. Query the IFsrmRule interface to get the interface for the specified type. For example, if ruleType is FsrmRuleType_Classification, query the IFsrmRule interface for the IFsrmClassificationRule interface.
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