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



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



DataSourceView.ExecuteInsert メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS