DbServerSyncProvider::GetChanges Method
Selects for a table in the server database the inserts, updates, and deletes to apply to the client database for a synchronization group.
Assembly: Microsoft.Synchronization.Data.Server (in Microsoft.Synchronization.Data.Server.dll)
public: virtual SyncContext^ GetChanges( SyncGroupMetadata^ groupMetadata, SyncSession^ syncSession ) override
Parameters
- groupMetadata
- Type: Microsoft.Synchronization.Data::SyncGroupMetadata
A SyncGroupMetadata object that contains metadata about the synchronization group.
- syncSession
- Type: Microsoft.Synchronization.Data::SyncSession
A SyncSession object that contains synchronization session variables, such as the ID of the client that is synchronizing.
Return Value
Type: Microsoft.Synchronization.Data::SyncContextA SyncContext object that contains synchronization data and metadata.
| Exception | Condition |
|---|---|
| ArgumentNullException | groupMetadata or syncSession is a nullptr, or this DbServerSyncProvider object does not have a connection associated with it. |
| DataSyncException | The changes could not be enumerated. |
Access the changes to be applied by using the data set that is returned by the SyncContext object.
Show: