共用方式為


RetentionPolicy(Boolean, Int32) Constructor

Definition

Initializes a new instance of RetentionPolicy.

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

Parameters

isEnabled
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