Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringThe name of the rule to retrieve. The name must not exceed 100 characters in length.
RuleType
Type: Microsoft.Storage._FsrmRuleTypeThe type of the rule to retrieve. For possible types, see the _FsrmRuleType enumeration. The FsrmRuleType_Generic type is not supported by this method.
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