共用方式為


LinqDataSourceView.Insert(IDictionary) 方法

定義

執行插入作業。

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

字典,指定要插入的資料。

傳回

Int32

已插入資料來源的資料列數目。

例外狀況

LinqDataSource 控制項無法建立資料類別。

CanInsert 屬性為 false

備註

Insert方法會呼叫 ExecuteInsert(IDictionary) 方法,並傳遞 values 參數。

如需如何透過控制項插入資料的詳細資訊 LinqDataSource ,請參閱 Insert(IDictionary) 類別的方法 LinqDataSource

適用於

另請參閱