SqlCeSyncStoreMetadataCleanup.PerformCleanup Method
Removes change-tracking metadata from the database and updates the cleanup knowledge to reflect the point where the cleanup process stopped.
Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Function PerformCleanup As Boolean
'Usage
Dim instance As SqlCeSyncStoreMetadataCleanup
Dim returnValue As Boolean
returnValue = instance.PerformCleanup()
public bool PerformCleanup()
public:
bool PerformCleanup()
member PerformCleanup : unit -> bool
public function PerformCleanup() : boolean
Return Value
Type: System.Boolean
true if metadata cleanup ran successfully. Otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The Connection property is a null reference (Nothing in Visual Basic). |
Remarks
For information about metadata cleanup, see How to: Clean Up Metadata for Collaborative Synchronization (SQL Server).