다음을 통해 공유


ObjectChangeConflict.Resolve Method (RefreshMode, Boolean)

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

  • autoResolveDeletes
    Type: System.Boolean

    true 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.

See Also

Reference

ObjectChangeConflict Class

ObjectChangeConflict Members

Resolve Overload

Microsoft.SharePoint.Linq Namespace