SPWDataConnector.Update Method (DataSet)
Updates the underlying data with the changes indicated in the specified DataSet.
Namespace: Microsoft.Office.SharePointWorkspace.AddIn.Data
Assembly: Microsoft.Office.SharePointWorkspace.AddIn.Data (in Microsoft.Office.SharePointWorkspace.AddIn.Data.dll)
Syntax
'Declaration
Public Function Update ( _
dataSet As DataSet _
) As Integer
'Usage
Dim instance As SPWDataConnector
Dim dataSet As DataSet
Dim returnValue As Integer
returnValue = instance.Update(dataSet)
public int Update(
DataSet dataSet
)
Parameters
- dataSet
Type: System.Data.DataSet
DataSet with changes that will be applied to the underlying data.
Return Value
Type: System.Int32
Number of records updated.
Implements
ISPWDataConnector.Update(DataSet)
Remarks
For new and updated DataRows, Update(DataSet) updates the system columns in the DataSet. But it does not refresh any other data in the DataSet.
Note
The Update([]) call allows you to specify multiple DataSets in a single update. If your business logic requires that all DataSet updates be accepted together, you should specify the array of DataSets as a parameter.
If this method succeeds, it accepts all changes in the DataSet.
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.