SPWDataConnector.Update Method (DataSet )

Updates the underlying data with the changes indicated in the specified DataSets.

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

Syntax

'Declaration
Public Function Update ( _
    ParamArray dataSets As DataSet() _
) As Integer
'Usage
Dim instance As SPWDataConnector
Dim dataSets As DataSet()
Dim returnValue As Integer

returnValue = instance.Update(dataSets)
public int Update(
    params DataSet[] dataSets
)

Parameters

  • dataSets
    Type: []
    Array of DataSets with changes that will be applied to the underlying data.

Return Value

Type: System.Int32
Number of records updated.

Implements

ISPWDataConnector.Update([])

Remarks

For new and updated DataRows, Update(DataSet) updates the system columns in the DataSets. But it does not refresh any other data in the DataSet.

If this method succeeds, it accepts all changes in the DataSest.

Note

The results of null values in a new or updated row in a dataset are undefined when you call the Update method. The behavior of SharePoint Workspace under these circumstances is an implementation detail. The behavior of SharePoint Workspace may differ in future releases, and your add-in tool should not depend on any behavior of SharePoint Workspace when the dataset has null values.

See Also

Reference

SPWDataConnector Class

SPWDataConnector Members

Update Overload

Microsoft.Office.SharePointWorkspace.AddIn.Data Namespace