ContextDataSourceView.ExecuteUpdate 方法

定义

使用指定的行键值、行值和用于检测冲突的行值执行更新操作。

protected:
 override int ExecuteUpdate(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ values, System::Collections::IDictionary ^ oldValues);
protected override int ExecuteUpdate(System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues);
override this.ExecuteUpdate : System.Collections.IDictionary * System.Collections.IDictionary * System.Collections.IDictionary -> int
Protected Overrides Function ExecuteUpdate (keys As IDictionary, values As IDictionary, oldValues As IDictionary) As Integer

参数

keys
IDictionary

要更新的记录的行键值的字典。

values
IDictionary

一个名称/值对字典,表示数据元素及其新值。

oldValues
IDictionary

一个名称/值对字典,表示数据元素及其原始值,用于检测数据冲突。

返回

数据源中更新的行数。

适用于