Export (0) Print
Expand All

SyncConflict Class

Represents a synchronization conflict at the row level.

System.Object
  Microsoft.Synchronization.Data.SyncConflict

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

[SerializableAttribute]
public class SyncConflict

The SyncConflict type exposes the following members.

  NameDescription
Public methodSyncConflict()Initializes a new instance of the SyncConflict class by using default values.
Public methodSyncConflict(ConflictType, SyncStage)Initializes a new instance of the SyncConflict class by using conflict type and conflict stage parameters.
Top

  NameDescription
Public propertyClientChangeGets or sets the DataTable object that contains the conflicting rows from the client database.
Public propertyConflictTypeGets or sets the ConflictType enumeration value that represents the type of synchronization conflict.
Public propertyErrorMessageGets or sets the error message if ConflictType is set to ErrorsOccurred.
Public propertyServerChangeGets or sets the DataTable object that contains the conflicting rows from the server database.
Public propertySyncStageGets or sets the SyncStage enumeration value that represents the synchronization stage during which the conflict occurred.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

For conflicts encountered during synchronization, the data from each conflicting row is stored in a SyncConflict collection. It is possible for this collection to grow large enough to cause an out of memory error in the following situations:

  • There are a large number of conflicting rows. Consider synchronizing a smaller number of rows in each session, or limit the number of conflicts by updating a particular row at only one node.

  • The conflicting rows contain columns with large data types. Consider not including the columns with large data types in the set of columns that is synchronized. For more information, see How to: Filter Rows and Columns.

For an example of how to handle conflicts, see How to: Handle Data Conflicts and Errors.

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