Condividi tramite


ManagementPolicyRule Constructor

Definition

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