ConflictMode Enumeration

Specifies when an attempt to submit changes to a list should be stopped and a ChangeConflictException thrown.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

public enum ConflictMode

Member nameDescription
ContinueOnConflictAttempt all changes and, when done, if there have been any concurrency conflicts, throw a ChangeConflictException exception and populate ChangeConflicts.
FailOnFirstConflictThrow a ChangeConflictException exception when the first concurrency change conflict is found, stop making changes, and populate ChangeConflicts.

A value of this enumeration is passed as a parameter to the SubmitChanges(ConflictMode) method.

NoteNote

When a ChangeConflictException exception is thrown, the DataContext object on which SubmitChanges(ConflictMode) was called has a collection of the discrepancies in its ChangeConflicts property.

Show: