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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET