RetentionDuration Constructors

Definition

Overloads

RetentionDuration()

Initializes a new instance of the RetentionDuration class.

RetentionDuration(Nullable<Int32>, String)

Initializes a new instance of the RetentionDuration class.

RetentionDuration()

Initializes a new instance of the RetentionDuration class.

public RetentionDuration ();
Public Sub New ()

Applies to

RetentionDuration(Nullable<Int32>, String)

Initializes a new instance of the RetentionDuration class.

public RetentionDuration (int? count = default, string durationType = default);
new Microsoft.Azure.Management.RecoveryServices.Backup.Models.RetentionDuration : Nullable<int> * string -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.RetentionDuration
Public Sub New (Optional count As Nullable(Of Integer) = Nothing, Optional durationType As String = Nothing)

Parameters

count
Nullable<Int32>

Count of duration types. Retention duration is obtained by the counting the duration type Count times. For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.

durationType
String

Retention duration type of retention policy. Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years'

Applies to