DataContext.SubmitChanges Method (ConflictMode, Boolean)

Persists, to the content database, changes made by the current user to one or more lists using the specified failure mode and the specified indication of whether the versions of changed list items should be incremented; or, if a concurrency conflict is found, populates the ChangeConflicts property.

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

Syntax

'Declaration
Public Sub SubmitChanges ( _
    failureMode As ConflictMode, _
    systemUpdate As Boolean _
)
'Usage
Dim instance As DataContext
Dim failureMode As ConflictMode
Dim systemUpdate As Boolean

instance.SubmitChanges(failureMode, systemUpdate)
public void SubmitChanges(
    ConflictMode failureMode,
    bool systemUpdate
)

Parameters

  • systemUpdate
    Type: System.Boolean

    true to not increment the version of a changed item, false to increment it.

Exceptions

Exception Condition
InvalidOperationException

ObjectTrackingEnabled is false

- or -

At least one conflict in ChangeConflicts from the last time SubmitChanges() was called is not yet resolved.

ChangeConflictException

There is a concurrency conflict.

See Also

Reference

DataContext Class

DataContext Members

SubmitChanges Overload

Microsoft.SharePoint.Linq Namespace