共用方式為


SPUsageProvider.RetentionPeriod Property

The number of days to keep data for this provider.

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

Syntax

'Declaration
Public Property RetentionPeriod As Byte
    Get
    Set
'Usage
Dim instance As SPUsageProvider
Dim value As Byte

value = instance.RetentionPeriod

instance.RetentionPeriod = value
public byte RetentionPeriod { get; set; }

Property Value

Type: System.Byte
A Byte representation of the number of days.

Implements

ILoggingProvider.RetentionPeriod

See Also

Reference

SPUsageProvider Class

SPUsageProvider Members

Microsoft.SharePoint.Administration Namespace