SqlDataSourceView.Insert(IDictionary) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 InsertCommand SQL 字串、集合中指定的 InsertParameters 參數及指定 values 集合中的值執行插入操作。
public:
int Insert(System::Collections::IDictionary ^ values);
public int Insert(System.Collections.IDictionary values);
override this.Insert : System.Collections.IDictionary -> int
Public Function Insert (values As IDictionary) As Integer
參數
- values
- IDictionary
一 IDictionary 組參數,供 InsertCommand 該屬性執行插入資料庫操作。 如果查詢沒有參數相關,或 不是 InsertCommand 參數化的 SQL 查詢,則傳遞 null。
傳回
一個代表插入底層資料庫的列數值。
例外狀況
他們 SqlDataSource 無法與底層資料來源建立連結。
IsEditable 屬性為 true。
備註
該方法呼叫 Insert 該 ExecuteInsert 方法,並傳遞 values 參數。