Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Resolves the discrepancies by assigning each field and property, for which there is a discrepancy, a value that is persisted to the database on the next call of SubmitChanges.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Sub Resolve ( _
refreshMode As RefreshMode, _
autoResolveDeletes As Boolean _
)
'Usage
Dim instance As ObjectChangeConflict
Dim refreshMode As RefreshMode
Dim autoResolveDeletes As Boolean
instance.Resolve(refreshMode, autoResolveDeletes)
public void Resolve(
RefreshMode refreshMode,
bool autoResolveDeletes
)
Parameters
refreshMode
Type: Microsoft.SharePoint.Linq.RefreshModeA value that specifies how to resolve the conflict.
autoResolveDeletes
Type: System.Booleantrue to treat the conflict as resolved if the list item being changed has been deleted from the database; false to throw InvalidOperationException if the list item being changed has been deleted from the database
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | autoResolveDeletes is false and the list item being updated has been deleted from the database. |
Remarks
If the list item has been deleted from the database and autoResolveDeletes is true, Resolve(RefreshMode, Boolean) sets IsResolved to true.