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

名稱/值組的字典,表示資料項目及其原始值,用於偵測資料衝突。

傳回

Int32

資料來源中已更新的資料列數目。

適用於