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

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

SqlDataSourceView.ExecuteInsert メソッド

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

InsertCommand SQL 文字列、InsertParameters コレクションで指定した任意のパラメータ、および指定した values コレクション内の値を使用して、挿入操作を実行します。

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

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

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

パラメータ

values

データベースへの挿入操作を実行するために、InsertCommand プロパティで使用される値の IDictionary。クエリに関連付けられているパラメータがないか、InsertCommand プロパティがパラメータ化された SQL クエリでない場合は、null 参照 (Visual Basic では Nothing) を渡します。

戻り値
基になるデータベースに挿入された行数を表す値。

例外例外
例外の種類条件

InvalidOperationException

SqlDataSource が、基になるデータ ソースとの接続を確立できません。

HttpException

現在のユーザーには、データベースにアクセスできる正しいアクセス許可がありません。

NotSupportedException

CanInsert プロパティが false です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlDataSourceView クラス
SqlDataSourceView メンバ
System.Web.UI.WebControls 名前空間
Insert
InsertCommand
InsertParameters



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2026 GRAS Group, Inc.RSS