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)


Public Property RetentionInDays As Integer
Dim instance As SqlCeClientSyncProvider
Dim value As Integer

value = instance.RetentionInDays

instance.RetentionInDays = value
public int RetentionInDays { get; set; }
property int RetentionInDays {
    int get ();
    void set (int value);
member RetentionInDays : int with get, set
function get RetentionInDays () : int
function set RetentionInDays (value : int)

Property Value

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


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


SqlCeClientSyncProvider Class

Microsoft.Synchronization.Data.SqlServerCe Namespace