SqlDataSourceSelectingEventArgsとは? わかりやすく解説

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

SqlDataSourceSelectingEventArgs クラス

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

SqlDataSource コントロールの Selecting イベントデータ提供します

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

Public Class SqlDataSourceSelectingEventArgs
    Inherits SqlDataSourceCommandEventArgs
Dim instance As SqlDataSourceSelectingEventArgs
public class SqlDataSourceSelectingEventArgs
 : SqlDataSourceCommandEventArgs
public ref class SqlDataSourceSelectingEventArgs
 : public SqlDataSourceCommandEventArgs
public class SqlDataSourceSelectingEventArgs
 extends SqlDataSourceCommandEventArgs
public class SqlDataSourceSelectingEventArgs
 extends SqlDataSourceCommandEventArgs
解説解説

イベント ハンドラ デリゲート追加してSelecting イベント処理することにより、別途プリプロセスを実行したり、データベース クエリそのものキャンセルしたできますSqlDataSourceSelectingEventArgs クラスは SqlDataSourceCommandEventArgs クラスから派生しているため、Cancel プロパティtrue設定することによって、保留中の SqlDataSource データベース クエリキャンセルできますCommand プロパティ公開している DbCommand オブジェクトアクセスすることで、クエリ実行する前に、CommandText、Parameters コレクション、および、その他のデータベース クエリ プロパティチェックし必要に応じてプロパティ操作できますまた、Arguments プロパティアクセスすることで、Select メソッド渡される DataSourceSelectArguments オブジェクトチェックすることもできます

SqlDataSourceSelectingEventArgs クラスを、OnSelecting メソッド使用することにより、SqlDataSourceデータベース クエリ実行前にアクセスできます

SqlDataSource コントロールは、データ操作過程で、基になるデータ オブジェクト操作する際に利用できる数多くイベント公開してます。イベント、および関連する EventArgs クラスイベント ハンドラデリゲートの一覧を次の表に示します

イベント

イベント引数

イベント ハンドラ

Selecting

データ取得され前に発生します

SqlDataSourceSelectingEventArgs

SqlDataSourceSelectingEventHandler

Inserting、Updating、および Deleting

挿入更新削除いずれか操作実行される前に発生します

SqlDataSourceCommandEventArgs

SqlDataSourceCommandEventHandler

Selected、Inserted、Updated、および Deleted

データ取得挿入更新削除の各操作完了した後で発生します

SqlDataSourceStatusEventArgs

SqlDataSourceStatusEventHandler

.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
   System.EventArgs
     System.ComponentModel.CancelEventArgs
       System.Web.UI.WebControls.SqlDataSourceCommandEventArgs
        System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlDataSourceSelectingEventArgs メンバ
System.Web.UI.WebControls 名前空間
SqlDataSourceSelectingEventHandler
SqlDataSourceCommandEventArgs クラス
SqlDataSource.Selecting イベント

SqlDataSourceSelectingEventArgs コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定されDbCommand オブジェクト、および、Select メソッド渡されDataSourceSelectArguments使用して、SqlDataSourceSelectingEventArgs クラス新しインスタンス初期化します。

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

Public Sub New ( _
    command As DbCommand, _
    arguments As DataSourceSelectArguments _
)
Dim command As DbCommand
Dim arguments As DataSourceSelectArguments

Dim instance As New SqlDataSourceSelectingEventArgs(command,
 arguments)
public SqlDataSourceSelectingEventArgs (
    DbCommand command,
    DataSourceSelectArguments arguments
)
public:
SqlDataSourceSelectingEventArgs (
    DbCommand^ command, 
    DataSourceSelectArguments^ arguments
)
public SqlDataSourceSelectingEventArgs (
    DbCommand command, 
    DataSourceSelectArguments arguments
)
public function SqlDataSourceSelectingEventArgs
 (
    command : DbCommand, 
    arguments : DataSourceSelectArguments
)

パラメータ

command

キャンセル可能な Select クエリを表す DbCommand オブジェクト

arguments

Select メソッドに渡す DataSourceSelectArguments オブジェクト

解説解説

inputParameters パラメータには、名前/値ペアの IDictionary コレクション指定します。これらの名前/値ペアメソッド シグネチャ適合している必要があります。またこれらは参照渡されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlDataSourceSelectingEventArgs クラス
SqlDataSourceSelectingEventArgs メンバ
System.Web.UI.WebControls 名前空間
Select
SqlDataSourceSelectingEventHandler

SqlDataSourceSelectingEventArgs プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Arguments Select メソッド渡された DataSourceSelectArguments オブジェクト取得します
パブリック プロパティ Cancel  イベントキャンセルするかどうかを示す値を取得または設定します。 ( CancelEventArgs から継承されます。)
パブリック プロパティ Command  保留中のデータベース コマンド取得します。 ( SqlDataSourceCommandEventArgs から継承されます。)
参照参照

関連項目

SqlDataSourceSelectingEventArgs クラス
System.Web.UI.WebControls 名前空間
SqlDataSourceSelectingEventHandler
SqlDataSourceCommandEventArgs クラス
SqlDataSource.Selecting イベント

SqlDataSourceSelectingEventArgs メソッド


SqlDataSourceSelectingEventArgs メンバ

SqlDataSource コントロールの Selecting イベントデータ提供します

SqlDataSourceSelectingEventArgs データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SqlDataSourceSelectingEventArgs 指定された DbCommand オブジェクト、および、Select メソッド渡された DataSourceSelectArguments を使用して、SqlDataSourceSelectingEventArgs クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Arguments Select メソッド渡されDataSourceSelectArguments オブジェクト取得します
パブリック プロパティ Cancel  イベントキャンセルするかどうかを示す値を取得または設定します。(CancelEventArgs から継承されます。)
パブリック プロパティ Command  保留中のデータベース コマンド取得します。(SqlDataSourceCommandEventArgs から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SqlDataSourceSelectingEventArgs クラス
System.Web.UI.WebControls 名前空間
SqlDataSourceSelectingEventHandler
SqlDataSourceCommandEventArgs クラス
SqlDataSource.Selecting イベント


このページでは「.NET Framework クラス ライブラリ リファレンス」からSqlDataSourceSelectingEventArgsを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSqlDataSourceSelectingEventArgsを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSqlDataSourceSelectingEventArgs を検索

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

辞書ショートカット

すべての辞書の索引

「SqlDataSourceSelectingEventArgs」の関連用語

SqlDataSourceSelectingEventArgsのお隣キーワード
検索ランキング

   

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



SqlDataSourceSelectingEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS