ChangeConflictCollection.ResolveAll Method
Resolves all the concurrency conflicts in the collection.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Sub ResolveAll
'Usage
Dim instance As ChangeConflictCollection
instance.ResolveAll()
public void ResolveAll()
Remarks
This overload behaves exactly as Resolve(RefreshMode, Boolean) with its refreshMode parameter set to KeepChanges and its autoResolveDeletes parameter set to true.
Examples
The following example shows the method in use:
foreach (TeamMember teamMember in teamSite.TeamMembers)
{
teamMember.TopTask = “Fiscal Planning”;
}
try
{
teamSite.SubmitChanges();
}
catch (ChangeConflictException e)
{
teamSite.ChangeConflicts.ResolveAll();
teamSite.SubmitChanges();
}
See Also
Reference
ChangeConflictCollection Class