ITypedList 接口

提供发现可绑定列表架构的功能,其中可用于绑定的属性不同于要绑定到的对象的公共属性。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Public Interface ITypedList
用法
Dim instance As ITypedList
public interface ITypedList
public interface class ITypedList
public interface ITypedList
public interface ITypedList

备注

例如,如果使用表示 customer 表的 DataView 对象,并希望绑定到 DataView 表示的 customer 对象的属性,而不是 DataView 的属性,则请使用此接口。

可绑定列表的设计时支持不需要该接口。

绑定到数据可以发生在运行时或在设计器中,但每种情况都有各自的规则。在运行时,可按下列任何规则绑定到数据:

  • Array

  • IList 的实施者,前提是该实施者具有强类型的 Item 属性(即 TypeObject 之外的任何类型)。可通过使 Item 的默认实现成为私有实现来实现此目的。如果要创建遵循强类型集合规则的 IList,应该从 CollectionBase 派生。

  • ITypedList 的实施者。

在设计器中,可按照相同的规则来初始化到 Component 对象的绑定。

有关绑定到数据源的更多信息,请参见 System.Windows.Forms.Binding 类。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

ITypedList 成员
System.ComponentModel 命名空间