ContextDataSourceView.ExecuteUpdate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過使用指定的列鍵值、列值以及用於偵測衝突的列值來執行更新操作。
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
一個由名稱/值對組成的字典,代表資料元素及其原始值,用來偵測資料衝突。
傳回
資料來源中更新的列數。