DataSourceView.ExecuteInsert メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataSourceView.ExecuteInsert メソッドの意味・解説 

DataSourceView.ExecuteInsert メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

DataSourceView オブジェクトで表されたデータのリストに対して、挿入操作を実行します。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Protected Overridable Function
 ExecuteInsert ( _
    values As IDictionary _
) As Integer
Dim values As IDictionary
Dim returnValue As Integer

returnValue = Me.ExecuteInsert(values)
protected virtual int ExecuteInsert (
    IDictionary values
)
protected:
virtual int ExecuteInsert (
    IDictionary^ values
)
protected int ExecuteInsert (
    IDictionary values
)
protected function ExecuteInsert (
    values : IDictionary
) : int

パラメータ

values

挿入操作で使用する名前/値ペアで構成される IDictionary。

戻り値
基になるデータ ストレージに挿入された項目数。

例外例外
例外の種類条件

NotSupportedException

ExecuteInsert 操作は DataSourceView ではサポートされません。

解説解説
使用例使用例

DataSourceView クラスを拡張するクラスで、CanInsert プロパティと ExecuteInsert メソッドをオーバーライドする方法を次のコード例に示します。このコード例は、DataSourceView クラスのトピックで取り上げているコード例の一部分です。

' The CsvDataSourceView does not currently
' permit insertion of a new record. You can
' modify or extend this sample to do so.
Public Overrides ReadOnly
 Property CanInsert() As Boolean
   Get
      Return False
   End Get
End Property

Protected Overrides Function
 ExecuteInsert(values As IDictionary) As Integer
   Throw New NotSupportedException()
End Function 'ExecuteInsert
// The CsvDataSourceView does not currently
// permit insertion of a new record. You can
// modify or extend this sample to do so.
public override bool CanInsert {
    get {
        return false;
    }
}
protected override int ExecuteInsert(IDictionary
 values)
{
    throw new NotSupportedException();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataSourceView クラス
DataSourceView メンバ
System.Web.UI 名前空間
CanInsert



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

DataSourceView.ExecuteInsert メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataSourceView.ExecuteInsert メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS