ISPWDataConnector.Update Method (DataSet )

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

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

Syntax

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

returnValue = instance.Update(dataSets)
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.

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

ISPWDataConnector Interface

ISPWDataConnector Members

Update Overload

Microsoft.Office.SharePointWorkspace.AddIn Namespace