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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET