SqlCeClientSyncProvider.AcceptChanges Method (IEnumerable<String>)
Updates tracking metadata for the specified tables so that pending changes for the specified tables 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 ( _
tableNames As IEnumerable(Of String) _
)
'Usage
Dim instance As SqlCeClientSyncProvider
Dim tableNames As IEnumerable(Of String)
instance.AcceptChanges(tableNames)
public void AcceptChanges(
IEnumerable<string> tableNames
)
public:
void AcceptChanges(
IEnumerable<String^>^ tableNames
)
member AcceptChanges :
tableNames:IEnumerable<string> -> unit
public function AcceptChanges(
tableNames : IEnumerable<String>
)
Parameters
- tableNames
Type: System.Collections.Generic.IEnumerable<String>
A collection of tables in the client database for which to accept changes.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | tableName 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.