ManagementPolicyRule Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ManagementPolicyRule.
public ManagementPolicyRule (string name, Azure.ResourceManager.Storage.Models.ManagementPolicyRuleType ruleType, Azure.ResourceManager.Storage.Models.ManagementPolicyDefinition definition);
new Azure.ResourceManager.Storage.Models.ManagementPolicyRule : string * Azure.ResourceManager.Storage.Models.ManagementPolicyRuleType * Azure.ResourceManager.Storage.Models.ManagementPolicyDefinition -> Azure.ResourceManager.Storage.Models.ManagementPolicyRule
Public Sub New (name As String, ruleType As ManagementPolicyRuleType, definition As ManagementPolicyDefinition)
Parameters
- name
- String
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- ruleType
- ManagementPolicyRuleType
The valid value is Lifecycle.
- definition
- ManagementPolicyDefinition
An object that defines the Lifecycle rule.
Exceptions
name
or definition
is null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET