EntityDataSource.SelectParameters プロパティ

定義

射影を作成するために使用されるパラメーターのコレクションを取得します。

public:
 property System::Web::UI::WebControls::ParameterCollection ^ SelectParameters { System::Web::UI::WebControls::ParameterCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.ParameterCollection SelectParameters { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.SelectParameters : System.Web.UI.WebControls.ParameterCollection
Public ReadOnly Property SelectParameters As ParameterCollection

プロパティ値

射影の作成に使用されるパラメーター。

属性

注釈

クラスの Select メソッドと同様に ObjectQuery<T> 、 プロパティで定義されているプロジェクションにパラメーターを Select 渡すことができます。 コントロールの プロパティは SelectParametersEntityDataSource クエリの ParameterCollection SELECT ステートメントに指定するパラメーターを含む を指定します。 プロパティは SelectParameters 、名前付き引数を使用して、 プロパティに指定された文字列で指定されたパラメーターを Select 参照します。

プロパティが SelectParameters 設定されていない場合、パラメーターの置換は行われません。 SELECT ステートメント内のすべてのパラメーター名の先頭に "@" 記号, が付いているには、 内に一致する名前が ParameterCollection含まれている必要があります。 内のパラメーターには Null 値を ParameterCollection使用できません。

適用対象