Sdílet prostřednictvím


ManagementPolicyRule Class

Definition

An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.

public class ManagementPolicyRule
type ManagementPolicyRule = class
Public Class ManagementPolicyRule
Inheritance
ManagementPolicyRule

Constructors

ManagementPolicyRule()

Initializes a new instance of the ManagementPolicyRule class.

ManagementPolicyRule(String, ManagementPolicyDefinition, Nullable<Boolean>)

Initializes a new instance of the ManagementPolicyRule class.

Properties

Definition

Gets or sets an object that defines the Lifecycle rule.

Enabled

Gets or sets rule is enabled if set to true.

Name

Gets or sets a rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

Type

The valid value is Lifecycle

Methods

Validate()

Validate the object.

Applies to