SqlCeClientSyncProvider.RetentionInDays Property

Gets or sets the number of days that change-tracking metadata is stored in a SQL Server Compact database.

Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in microsoft.synchronization.data.sqlserverce.dll)

Syntax

'Declaration
Public Property RetentionInDays As Integer
'Usage
Dim instance As SqlCeClientSyncProvider
Dim value As Integer

value = instance.RetentionInDays

instance.RetentionInDays = value
public int RetentionInDays { get; set; }
public:
property int RetentionInDays {
    int get ();
    void set (int value);
}
/** @property */
public int get_RetentionInDays ()

/** @property */
public void set_RetentionInDays (int value)
public function get RetentionInDays () : int

public function set RetentionInDays (value : int)

Property Value

The number of days that change-tracking metadata should be stored in a SQL Server Compact database.

Remarks

The minimum value for this property is one day. A value of 0 specifies that metadata should never be cleaned up. During each session, metadata is deleted if it is older than the retention period and if it applies to one of the tables in a group that is currently being synchronized. Metadata for tables outside of the groups that are being synchronized is not deleted.

See Also

Reference

SqlCeClientSyncProvider Class
SqlCeClientSyncProvider Members
Microsoft.Synchronization.Data.SqlServerCe Namespace