SqlCeClientSyncProvider.AcceptChanges Method (String, SyncAnchor)

Updates tracking metadata up to the specified anchor point so that pending changes for the specified table 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)

Syntax

'Declaration
Public Sub AcceptChanges ( _
    tableName As String, _
    newAnchor As SyncAnchor _
)
'Usage
Dim instance As SqlCeClientSyncProvider
Dim tableName As String
Dim newAnchor As SyncAnchor

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

Parameters

  • tableName
    Type: System.String
    A table in the client database for which to accept changes.

Exceptions

Exception Condition
ArgumentNullException

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

DataSyncException

Another transaction is in progress.

Remarks

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

Reference

SqlCeClientSyncProvider Class

AcceptChanges Overload

Microsoft.Synchronization.Data.SqlServerCe Namespace