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.

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

Syntax

'Declaration
Public Overrides Function GetChanges ( _
    groupMetadata As SyncGroupMetadata, _
    syncSession As SyncSession _
) As SyncContext
'Usage
Dim instance As DbServerSyncProvider
Dim groupMetadata As SyncGroupMetadata
Dim syncSession As SyncSession
Dim returnValue As SyncContext

returnValue = instance.GetChanges(groupMetadata, _
    syncSession)
public override SyncContext GetChanges(
    SyncGroupMetadata groupMetadata,
    SyncSession syncSession
)
public:
virtual SyncContext^ GetChanges(
    SyncGroupMetadata^ groupMetadata, 
    SyncSession^ syncSession
) override
abstract GetChanges : 
        groupMetadata:SyncGroupMetadata * 
        syncSession:SyncSession -> SyncContext 
override GetChanges : 
        groupMetadata:SyncGroupMetadata * 
        syncSession:SyncSession -> SyncContext 
public override function GetChanges(
    groupMetadata : SyncGroupMetadata, 
    syncSession : SyncSession
) : SyncContext

Parameters

Return Value

Type: Microsoft.Synchronization.Data.SyncContext
A SyncContext object that contains synchronization data and metadata.

Exceptions

Exception Condition
ArgumentNullException

groupMetadata or syncSession is a null reference (Nothing in Visual Basic), or this DbServerSyncProvider object does not have a connection associated with it.

DataSyncException

The changes could not be enumerated.

Remarks

Access the changes to be applied by using the data set that is returned by the SyncContext object.

See Also

Reference

DbServerSyncProvider Class

Microsoft.Synchronization.Data.Server Namespace