SqlCeClientSyncProvider.AcceptChanges Method (IEnumerable<String>, SyncAnchor)

Updates tracking metadata up to the specified anchor point so that pending changes for the specified tables at the client are not uploaded during the next synchronization.

Namespace:  Microsoft.Synchronization.Data.SqlServerCe
Assembly:  Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)


Public Sub AcceptChanges ( _
    tableNames As IEnumerable(Of String), _
    newAnchor As SyncAnchor _
Dim instance As SqlCeClientSyncProvider
Dim tableNames As IEnumerable(Of String)
Dim newAnchor As SyncAnchor

instance.AcceptChanges(tableNames, newAnchor)
public void AcceptChanges(
    IEnumerable<string> tableNames,
    SyncAnchor newAnchor
void AcceptChanges(
    IEnumerable<String^>^ tableNames, 
    SyncAnchor^ newAnchor
member AcceptChanges : 
        tableNames:IEnumerable<string> * 
        newAnchor:SyncAnchor -> unit 
public function AcceptChanges(
    tableNames : IEnumerable<String>, 
    newAnchor : SyncAnchor



Exception Condition

tableName or newAnchor is a null reference (Nothing in Visual Basic).


Another transaction is in progress.


This method can be used if you do not want to upload a set of changes to the server. For example, you might make updates at the client that are only relevant to the client and that should not be applied at the server. Call this method after making those updates.

See Also


SqlCeClientSyncProvider Class

AcceptChanges Overload

Microsoft.Synchronization.Data.SqlServerCe Namespace