Dela via


RetentionPolicy Class

Definition

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