Partilhar via


SPWebApplication.ChangeLogRetentionPeriod Property

Gets or sets the number of days to retain change logs.

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

Syntax

'Declaration
Public Property ChangeLogRetentionPeriod As TimeSpan
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As TimeSpan

value = instance.ChangeLogRetentionPeriod

instance.ChangeLogRetentionPeriod = value
public TimeSpan ChangeLogRetentionPeriod { get; set; }

Property Value

Type: System.TimeSpan
A TimeSpan structure that specifies the retention period. Only the Days property is significant.

Remarks

The default value of the ChangeLogRetentionPeriod property is 60 days.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Using the Change Log