ObjectQuery.IListSource.GetList 方法

定义

IList 形式返回一个集合,用于数据绑定。Returns the collection as an IList used for data binding.

 virtual System::Collections::IList ^ System.ComponentModel.IListSource.GetList() = System::ComponentModel::IListSource::GetList;
System.Collections.IList IListSource.GetList ();
Function GetList () As IList Implements IListSource.GetList

返回

实体对象的 IListAn IList of entity objects.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ObjectQuery<T> 实例被强制转换为 IListSource 接口时使用。It can be used only when the ObjectQuery<T> instance is cast to an IListSource interface.

此方法可实现对查询结果的数据绑定。This method enables data binding to the result of the query. 它由绑定到集合的控件进行调用。It is called by the control bound to the collection. 有关详细信息, 请参阅将对象绑定到控件For more information, see Binding Objects to Controls.

适用于