SPSite.AuditLogTrimmingRetention 属性

Gets or sets the number of days of audit log data to retain.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property AuditLogTrimmingRetention As Integer
    Get
    Set
用法
Dim instance As SPSite
Dim value As Integer

value = instance.AuditLogTrimmingRetention

instance.AuditLogTrimmingRetention = value
public int AuditLogTrimmingRetention { get; set; }

属性值

类型:System.Int32
The number of days to retain events in the audit log.

备注

The AuditLogTrimmingRetention property specifies how many days to retain events in the audit log. When the TrimAuditLog property is set to true, excess is periodically removed from the audit log. This process involves establishing a limit by counting the specified number of days back from the present date, and then removing log entries for dates prior to this limit.

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间

TrimAuditLog