FsrmClassificationManagerClass.GetRule Method (String, _FsrmRuleType)
Retrieves the specified rule.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
public virtual IFsrmRule GetRule(
string ruleName,
_FsrmRuleType RuleType
)
public:
virtual IFsrmRule^ GetRule(
String^ ruleName,
_FsrmRuleType RuleType
)
abstract GetRule :
ruleName:string *
RuleType:_FsrmRuleType -> IFsrmRule
override GetRule :
ruleName:string *
RuleType:_FsrmRuleType -> IFsrmRule
Public Overridable Function GetRule (
ruleName As String,
RuleType As _FsrmRuleType
) As IFsrmRule
Parameters
ruleName
Type: System.StringThe name of the rule to retrieve. 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. Note that the FsrmRuleType_Generic type is not supported by this method.
Return Value
Type: Microsoft.Storage.IFsrmRule
Returns a IFsrmRule containing 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.
Implements
IFsrmClassificationManager2.GetRule(String, _FsrmRuleType)
See Also
IFsrmClassificationManager2
IFsrmClassificationManager
CreateRule
EnumRules
FsrmClassificationManager
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification
Return to top