SyncContext Class

Encapsulates data changes and anchor values and other metadata for a synchronization session.

Inheritance Hierarchy


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


<SerializableAttribute> _
Public Class SyncContext
Dim instance As SyncContext
public class SyncContext
public ref class SyncContext
type SyncContext =  class end
public class SyncContext

The SyncContext type exposes the following members.


  Name Description
Public method SyncContext Initializes a new instance of the SyncContext class.



  Name Description
Public property BatchCount Gets or sets the number of batches that are required to synchronize a group of tables.
Public property DataSet Gets or sets a DataSet object that contains the rows of data selected from the server database.
Public property GroupProgress Gets or sets a SyncGroupProgress object that contains a set of progress statistics for a synchronization group.
Public property MaxAnchor Gets or sets a SyncAnchor object that represents the largest anchor value for a set of changes when changes synchronized in batches.
Public property NewAnchor Gets or sets a SyncAnchor object that defines the upper bound for the set of changes to be synchronized during the current session.
Public property OriginatorId Gets or sets the originator ID. This allows you to map the ClientId to a different value on the server.



  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)



A SyncContext object is returned after applying or selecting changes on a remote server.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.Synchronization.Data Namespace