Share via


SPDiagnosticsProvider.RetentionPeriod property

This property is called to get the retention period (in days) of the provider.

Namespace:  Microsoft.SharePoint.Diagnostics
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

value = instance.RetentionPeriod

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

Property value

Type: System.Byte
Returns a Byte value representing the retention period in whole days..

Implements

ILoggingProvider.RetentionPeriod

See also

Reference

SPDiagnosticsProvider class

SPDiagnosticsProvider members

Microsoft.SharePoint.Diagnostics namespace