BaseDataListDesigner.GetDesignTimeDataSource メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
デザイン時にデータ ソースとして使用できるオブジェクトを生成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetDesignTimeDataSource(Int32, Boolean) |
デザイン時にデータ ソースとして使用できるオブジェクトを生成します。 |
| GetDesignTimeDataSource(IEnumerable, Int32, Boolean) |
デザイン時にデータ ソースとして使用できるオブジェクトを生成します。 |
GetDesignTimeDataSource(Int32, Boolean)
デザイン時にデータ ソースとして使用できるオブジェクトを生成します。
protected:
System::Collections::IEnumerable ^ GetDesignTimeDataSource(int minimumRows, [Runtime::InteropServices::Out] bool % dummyDataSource);
protected System.Collections.IEnumerable GetDesignTimeDataSource(int minimumRows, out bool dummyDataSource);
member this.GetDesignTimeDataSource : int * bool -> System.Collections.IEnumerable
Protected Function GetDesignTimeDataSource (minimumRows As Integer, ByRef dummyDataSource As Boolean) As IEnumerable
パラメーター
- minimumRows
- Int32
データ ソースに含める必要があるサンプル データの最小行数。
- dummyDataSource
- Boolean
true 返されたデータ ソースにダミー データが含まれている場合。返されたデータ ソースに実際のデータ ソースからのデータが含まれている場合に false します。
返品
デザイン時に使用するデータ ソースとして機能する IEnumerable インターフェイスを実装するオブジェクト。
注釈
BaseDataListDesigner.GetDesignTimeDataSource メソッドは、DataTableプロパティとDataSource プロパティによって定義されたデータ ソースからDataMember オブジェクトの構築を試みます。 これが不可能な場合は、ダミー データから DataTable が作成されます。
こちらもご覧ください
適用対象
GetDesignTimeDataSource(IEnumerable, Int32, Boolean)
デザイン時にデータ ソースとして使用できるオブジェクトを生成します。
protected:
System::Collections::IEnumerable ^ GetDesignTimeDataSource(System::Collections::IEnumerable ^ selectedDataSource, int minimumRows, [Runtime::InteropServices::Out] bool % dummyDataSource);
protected System.Collections.IEnumerable GetDesignTimeDataSource(System.Collections.IEnumerable selectedDataSource, int minimumRows, out bool dummyDataSource);
member this.GetDesignTimeDataSource : System.Collections.IEnumerable * int * bool -> System.Collections.IEnumerable
Protected Function GetDesignTimeDataSource (selectedDataSource As IEnumerable, minimumRows As Integer, ByRef dummyDataSource As Boolean) As IEnumerable
パラメーター
- selectedDataSource
- IEnumerable
データ形式のテンプレートとして使用される IEnumerable を実装するオブジェクト。
- minimumRows
- Int32
データ ソース データに含める必要があるサンプル データの最小行数。
- dummyDataSource
- Boolean
true 返されたデータ ソースにダミー データが含まれている場合。返されたデータ ソースに実際のデータ ソースからのデータが含まれている場合に false します。
返品
デザイン時に使用するデータ ソースとして機能する IEnumerable インターフェイスを実装するオブジェクト。
注釈
BaseDataListDesigner.GetDesignTimeDataSource メソッドは、DataTable パラメーターで指定されたデータ ソースからselectedDataSource オブジェクトの構築を試みます。 これが不可能な場合は、ダミー データから DataTable が作成されます。