Table of Contents

Class ShareRetentionPolicy

Namespace
Azure.Storage.Files.Shares.Models
Assembly
Azure.Storage.Files.Shares.dll

The retention policy.

public class ShareRetentionPolicy
Inheritance
ShareRetentionPolicy
Inherited Members

Constructors

ShareRetentionPolicy()

Creates a new ShareRetentionPolicy instance.

public ShareRetentionPolicy()

Properties

Days

Indicates the number of days that metrics data should be retained. All data older than this value will be deleted. Metrics data is deleted on a best-effort basis after the retention period expires.

public int? Days { get; set; }

Property Value

int?

Enabled

Indicates whether a retention policy is enabled for the File service. If false, metrics data is retained, and the user is responsible for deleting it.

public bool Enabled { get; set; }

Property Value

bool