Compartir a través de


SqlCeClientSyncProvider.RetentionInDays Property

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

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

Syntax

'Declaration
Public Property RetentionInDays As Integer
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 3.5 database, with a default of 10 days.

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).

Target Platforms

See Also

Reference

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