ChangeConflictCollection Class

Represents a collection of ObjectChangeConflict objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Linq.ChangeConflictCollection

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

Syntax

'Declaration
Public NotInheritable Class ChangeConflictCollection _
    Implements ICollection(Of ObjectChangeConflict), IEnumerable(Of ObjectChangeConflict),  _
    ICollection, IEnumerable
'Usage
Dim instance As ChangeConflictCollection
public sealed class ChangeConflictCollection : ICollection<ObjectChangeConflict>, 
    IEnumerable<ObjectChangeConflict>, ICollection, IEnumerable

Remarks

Each member of the collection represents a discrepancy between, on the one hand, the value of a list item field in the current client process, and, on the other hand, the content database values of the corresponding fields in that same item. The list item in question is one that the current user was attempting to change with a call to SubmitChanges(). At least one member of the collection also represents a concurrency conflict: one of the list item’s fields was changed by another user process after the current process last retrieved it from the database.

This class has no public constructor. Objects of this type are referenced by the DataContext.ChangeConflicts property.

You cannot add members to the collection with your own code. Because the class implements ICollection<T>, it must have a public Add(ObjectChangeConflict) method; but the method just throws an exception.

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

Reference

ChangeConflictCollection Members

Microsoft.SharePoint.Linq Namespace