Share via


SPWDAExtensions.ResolveConflicts Method

Resolves DataRow conflicts.

Namespace:  Microsoft.Office.SharePointWorkspace.AddIn.Data
Assembly:  Microsoft.Office.SharePointWorkspace.AddIn.Data (in Microsoft.Office.SharePointWorkspace.AddIn.Data.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ResolveConflicts ( _
    dataRow As DataRow _
) As Boolean
'Usage
Dim dataRow As DataRow
Dim returnValue As Boolean

returnValue = dataRow.ResolveConflicts()
public static bool ResolveConflicts(
    this DataRow dataRow
)

Parameters

Return Value

Type: System.Boolean
true if the method succeeds; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataRow. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.14) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.14).

Remarks

To determine if a DataRow has a conflict, test the value of the _HasConflicts system column in the DataRow. If _HasConflicts is true, then the DataRow has one or more conflict rows.

This DataRow becomes the winner and all other conflicting DataRows are removed. This method is executed immediately on the underlying data and the update is replicated to all members of the workspace.

DataRow conflicts are handled separately from attachment conflicts. If both a DataRow has a conflict and one or more of its attachments have conflicts, you should resolve both the DataRow and attachment conflicts. You can resolve attachment conflicts with the ResolveConflict method.

Note

Although this method appears present on all DataRow objects, you can call this method only on DataRow objects in DataSets that were either created by the Query method or filled by the Fill method or the FillSchema method. Calling this method on any other DataRow is unsupported and the results are undefined.

See Also

Reference

SPWDAExtensions Class

SPWDAExtensions Members

Microsoft.Office.SharePointWorkspace.AddIn.Data Namespace