RetentionPolicy Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET