Editare

Partajați prin


LinqDataSourceView.Update(IDictionary, IDictionary, IDictionary) Method

Definition

Performs an update operation.

public:
 int Update(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ values, System::Collections::IDictionary ^ oldValues);
public int Update (System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues);
override this.Update : System.Collections.IDictionary * System.Collections.IDictionary * System.Collections.IDictionary -> int
Public Function Update (keys As IDictionary, values As IDictionary, oldValues As IDictionary) As Integer

Parameters

keys
IDictionary

The row key values for the records to update.

values
IDictionary

The row values to update in the data source.

oldValues
IDictionary

The row values that are evaluated to detect data conflicts.

Returns

The number of rows that were updated in the data source.

Remarks

The Update method calls the ExecuteUpdate(IDictionary, IDictionary, IDictionary) method, passing the keys, values, and oldValues parameters.

For information about how to update data through a LinqDataSource control, see the Update(IDictionary, IDictionary, IDictionary) method of the LinqDataSource class.

Applies to

See also