Condividi tramite


ManagementPolicyRule Constructors

Definition

Overloads

ManagementPolicyRule()

Initializes a new instance of the ManagementPolicyRule class.

ManagementPolicyRule(String, ManagementPolicyDefinition, Nullable<Boolean>)

Initializes a new instance of the ManagementPolicyRule class.

ManagementPolicyRule()

Initializes a new instance of the ManagementPolicyRule class.

public ManagementPolicyRule ();
Public Sub New ()

Applies to

ManagementPolicyRule(String, ManagementPolicyDefinition, Nullable<Boolean>)

Initializes a new instance of the ManagementPolicyRule class.

public ManagementPolicyRule (string name, Microsoft.Azure.Management.Storage.Models.ManagementPolicyDefinition definition, bool? enabled = default);
new Microsoft.Azure.Management.Storage.Models.ManagementPolicyRule : string * Microsoft.Azure.Management.Storage.Models.ManagementPolicyDefinition * Nullable<bool> -> Microsoft.Azure.Management.Storage.Models.ManagementPolicyRule
Public Sub New (name As String, definition As ManagementPolicyDefinition, Optional enabled As Nullable(Of Boolean) = Nothing)

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.

definition
ManagementPolicyDefinition

An object that defines the Lifecycle rule.

enabled
Nullable<Boolean>

Rule is enabled if set to true.

Applies to