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

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

DataSourceView.ExecuteDelete メソッド

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

DataSourceView オブジェクト表されデータリストに対して削除操作実行します

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

Protected Overridable Function
 ExecuteDelete ( _
    keys As IDictionary, _
    oldValues As IDictionary _
) As Integer
Dim keys As IDictionary
Dim oldValues As IDictionary
Dim returnValue As Integer

returnValue = Me.ExecuteDelete(keys, oldValues)
protected virtual int ExecuteDelete (
    IDictionary keys,
    IDictionary oldValues
)
protected:
virtual int ExecuteDelete (
    IDictionary^ keys, 
    IDictionary^ oldValues
)
protected int ExecuteDelete (
    IDictionary keys, 
    IDictionary oldValues
)
protected function ExecuteDelete (
    keys : IDictionary, 
    oldValues : IDictionary
) : int

パラメータ

keys

ExecuteDelete 操作削除するオブジェクト キーまたは行キー構成される IDictionary。

oldValues

データ要素およびその元の値を表す名前/値ペア構成される IDictionary

戻り値
基になるデータ ストレージから削除され項目数

例外例外
例外種類条件

NotSupportedException

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

解説解説
使用例使用例

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

' The CsvDataSourceView does not currently
' permit deletion. You can modify or extend
' this sample to do so.
Public Overrides ReadOnly
 Property CanDelete() As Boolean
   Get
      Return False
   End Get
End Property

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



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS