Share via


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

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

返回

已在数据源中更新的行数。

适用于