ParameterCollectionEditor クラス
アセンブリ: System.Design (system.design.dll 内)


ParameterCollectionEditor クラスは、いずれかの Parameters プロパティで指定した、ParameterCollection オブジェクトの Parameter 要素をデザイン時に編集するためのユーザー インターフェイスを提供します。Parameters プロパティには、ObjectDataSource コントロール、SqlDataSource コントロール、およびその他のデータ ソース コントロールのプロパティ (DeleteParameters、FilterParameters、InsertParameters、SelectParameters、および UpdateParameters) が含まれます。
ビジュアル デザイナの [プロパティ] グリッドのいずれかの Parameters プロパティの省略記号ボタン (...) をクリックすると、ParameterCollectionEditor が呼び出されます。
EditValue メソッドは、関連付けられているデータ ソース コントロールの ParameterCollection の Parameter 要素を編集します。GetEditStyle メソッドは、このエディタに関連付けられている編集スタイルを取得します。

EditorAttribute 属性を使用して、ParameterCollectionEditor クラスと UITypeEditor クラス (コレクション エディタの基本クラス) をカスタム コントロールの SelectParameters プロパティと関連付けるコード例を次に示します。
Private selectParams As ParameterCollection ' Associate the ParameterCollectionEditor with the SelectParameters. <EditorAttribute(GetType(System.Web.UI.Design.WebControls. _ ParameterCollectionEditor), _ GetType(UITypeEditor))> _ Public Property SelectParameters() As ParameterCollection Get If selectParams Is Nothing Then selectParams = New ParameterCollection() End If Return selectParams End Get Set(ByVal value As ParameterCollection) selectParams = value End Set End Property ' SelectParameters
private ParameterCollection selectParams; // Associate the ParameterCollectionEditor with the SelectParameters. [Editor(typeof(System.Web.UI.Design.WebControls. ParameterCollectionEditor), typeof(UITypeEditor))] public ParameterCollection SelectParameters { get { // If there is no selectParams collection, create it. if (selectParams == null) selectParams = new ParameterCollection(); return selectParams; } set { selectParams = value; } } // SelectParameters

System.Drawing.Design.UITypeEditor
System.Web.UI.Design.WebControls.ParameterCollectionEditor


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からParameterCollectionEditor クラスを検索する場合は、下記のリンクをクリックしてください。

- ParameterCollectionEditor クラスのページへのリンク