共用方式為


SPWebApplication.ChangeLogExpirationEnabled Property

Gets or sets a value specifying whether change logs are deleted after the time span defined in the ChangeLogRetentionPeriod property.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property ChangeLogExpirationEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.ChangeLogExpirationEnabled

instance.ChangeLogExpirationEnabled = value
public bool ChangeLogExpirationEnabled { get; set; }

Property Value

Type: System.Boolean
true if change logs are deleted after the time span defined in the ChangeLogRetentionPeriod property; otherwise, false. The default value is true.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Using the Change Log