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)

Syntax

'Declaration
Public Enumeration ConflictMode
'Usage
Dim instance As ConflictMode
public enum ConflictMode

Members

Member name Description
ContinueOnConflict Attempt all changes and, when done, if there have been any concurrency conflicts, throw a ChangeConflictException exception and populate ChangeConflicts.
FailOnFirstConflict Throw a ChangeConflictException exception when the first concurrency change conflict is found, stop making changes, and populate ChangeConflicts.

Remarks

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

Note

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.

See Also

Reference

Microsoft.SharePoint.Linq Namespace