Share via


HtmlSelect.GetData メソッド

定義

IEnumerable コントロールにバインドされたデータ ソースを表す HtmlSelect オブジェクトを取得します。

protected:
 virtual System::Collections::IEnumerable ^ GetData();
protected virtual System.Collections.IEnumerable GetData ();
abstract member GetData : unit -> System.Collections.IEnumerable
override this.GetData : unit -> System.Collections.IEnumerable
Protected Overridable Function GetData () As IEnumerable

戻り値

IEnumerable オブジェクト。 データ ソースが指定されていない場合は、既定値の null が返されます。

例外

DataSourceID プロパティが IDataSource 型ではありません。

- または -

DataSourceID プロパティが IHierarchicalDataSource 型ではありません。

DataSource プロパティと DataSourceID プロパティの両方が HtmlSelect コントロールに対して定義されています。

- または -

要求されたデータ ビューが見つかりません。

注釈

メソッドは GetDataIEnumerable プロパティまたは プロパティで DataSource データ ソースが指定されたかどうかに関係なく、オブジェクトを DataSourceID 返します。

適用対象

こちらもご覧ください