共用方式為


RetentionPolicy Constructors

Definition

Overloads

RetentionPolicy()

Initializes a new instance of the RetentionPolicy class.

RetentionPolicy(Boolean, Int32)

Initializes a new instance of the RetentionPolicy class.

RetentionPolicy()

Initializes a new instance of the RetentionPolicy class.

public RetentionPolicy ();
Public Sub New ()

Applies to

RetentionPolicy(Boolean, Int32)

Initializes a new instance of the RetentionPolicy class.

public RetentionPolicy (bool enabled, int days);
new Microsoft.Azure.Management.Monitor.Models.RetentionPolicy : bool * int -> Microsoft.Azure.Management.Monitor.Models.RetentionPolicy
Public Sub New (enabled As Boolean, days As Integer)

Parameters

enabled
Boolean

a value indicating whether the retention policy is enabled.

days
Int32

the number of days for the retention in days. A value of 0 will retain the events indefinitely.

Applies to