ObjectDataSourceSelectingEventArgs クラス
定義
Selecting コントロールの ObjectDataSource イベントのデータを提供します。Provides data for the Selecting event of the ObjectDataSource control.
public ref class ObjectDataSourceSelectingEventArgs : System::Web::UI::WebControls::ObjectDataSourceMethodEventArgs
public class ObjectDataSourceSelectingEventArgs : System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs
type ObjectDataSourceSelectingEventArgs = class
inherit ObjectDataSourceMethodEventArgs
Public Class ObjectDataSourceSelectingEventArgs
Inherits ObjectDataSourceMethodEventArgs
- 継承
注釈
クラスは、 ObjectDataSourceSelectingEventArgs メソッドで使用され OnSelecting ます。The ObjectDataSourceSelectingEventArgs class is used in the OnSelecting method. クラスはクラスから派生しているため、 ObjectDataSourceMethodEventArgs ObjectDataSourceSelectingEventArgs クラスは、プロパティを使用して検証および操作の入力パラメーターにアクセスできるようにし InputParameters ます。Because it is derived from the ObjectDataSourceMethodEventArgs class, the ObjectDataSourceSelectingEventArgs class provides access to input parameters for validation and manipulation through the InputParameters property. クラスには、プロパティも用意されてい ObjectDataSourceSelectingEventArgs ExecutingSelectCount ます。このプロパティは、現在実行中のデータ取得操作がデータに加えて行数を取得しているかどうかを確認するために使用されます。The ObjectDataSourceSelectingEventArgs class also provides the ExecutingSelectCount property, which is used to check whether the currently executing data retrieval operation is retrieving a row count, in addition to the data. これは、データソースのページングが有効になっていると、 Selecting イベントが2回発生するため、重要です。This is important because when data source paging is enabled, the Selecting event is raised twice. 詳細については、「ExecutingSelectCount」を参照してください。For more information, see ExecutingSelectCount.
コントロールは、 ObjectDataSource ライフサイクルのさまざまなタイミングで基になるビジネスオブジェクトを操作するために処理できる多数のイベントを公開します。The ObjectDataSource control exposes many events that you can handle to work with the underlying business object at various times in its life cycle. 次の表に、イベントと、関連付けられている EventArgs クラスおよびイベントハンドラーデリゲートを示します。The following table lists the events and associated EventArgs classes and event handler delegates.
コンストラクター
ObjectDataSourceSelectingEventArgs(IOrderedDictionary, DataSourceSelectArguments, Boolean) |
ObjectDataSourceSelectingEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the ObjectDataSourceSelectingEventArgs class. |
プロパティ
Arguments |
ObjectDataSource オブジェクトを使用して、データの取得時にデータ関連の操作を要求できる機構を提供します。Provides a mechanism that the ObjectDataSource object can use to request data-related operations when data is retrieved. |
Cancel |
イベントをキャンセルするかどうかを示す値を取得または設定します。Gets or sets a value indicating whether the event should be canceled. (継承元 CancelEventArgs) |
ExecutingSelectCount |
データ取得操作中に ObjectDataSource が行数を取得するかどうかを示す値を取得します。Gets a value indicating whether the ObjectDataSource is retrieving a row count during a data retrieval operation. |
InputParameters |
ビジネス オブジェクトのメソッドのパラメーターとそれらの値を含むコレクションを取得します。Gets a collection that contains business object method parameters and their values. (継承元 ObjectDataSourceMethodEventArgs) |
メソッド
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |