RetentionPolicy Class
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.
Specifies the retention policy for the log.
public class RetentionPolicy
type RetentionPolicy = class
Public Class RetentionPolicy
- Inheritance
-
RetentionPolicy
Constructors
RetentionPolicy() |
Initializes a new instance of the RetentionPolicy class. |
RetentionPolicy(Boolean, Int32) |
Initializes a new instance of the RetentionPolicy class. |
Properties
Days |
Gets or sets the number of days for the retention in days. A value of 0 will retain the events indefinitely. |
Enabled |
Gets or sets a value indicating whether the retention policy is enabled. |
Methods
Validate() |
Validate the object. |
Applies to
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin