Aracılığıyla paylaş


DeleteRetentionPolicy Constructors

Definition

Overloads

DeleteRetentionPolicy()

Initializes a new instance of the DeleteRetentionPolicy class.

DeleteRetentionPolicy(Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the DeleteRetentionPolicy class.

DeleteRetentionPolicy()

Initializes a new instance of the DeleteRetentionPolicy class.

public DeleteRetentionPolicy ();
Public Sub New ()

Applies to

DeleteRetentionPolicy(Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the DeleteRetentionPolicy class.

public DeleteRetentionPolicy (bool? enabled = default, int? days = default, bool? allowPermanentDelete = default);
new Microsoft.Azure.Management.Storage.Models.DeleteRetentionPolicy : Nullable<bool> * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Management.Storage.Models.DeleteRetentionPolicy
Public Sub New (Optional enabled As Nullable(Of Boolean) = Nothing, Optional days As Nullable(Of Integer) = Nothing, Optional allowPermanentDelete As Nullable(Of Boolean) = Nothing)

Parameters

enabled
Nullable<Boolean>

Indicates whether DeleteRetentionPolicy is enabled.

days
Nullable<Int32>

Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.

allowPermanentDelete
Nullable<Boolean>

This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share.

Applies to