ListControl.PerformDataBinding(IEnumerable) 方法

定义

将指定的数据源绑定到从 ListControl 类派生的控件。Binds the specified data source to the control that is derived from the ListControl class.

protected public:
 override void PerformDataBinding(System::Collections::IEnumerable ^ dataSource);
protected internal override void PerformDataBinding (System.Collections.IEnumerable dataSource);
override this.PerformDataBinding : System.Collections.IEnumerable -> unit
Protected Friend Overrides Sub PerformDataBinding (dataSource As IEnumerable)

参数

dataSource
IEnumerable

表示数据源的 IEnumerableAn IEnumerable that represents the data source.

异常

SelectedIndex 的已缓存的值超出了范围。The cached value of SelectedIndex is out of range.

SelectedIndexSelectedValue 的已缓存的值不匹配。The cached values of SelectedIndex and SelectedValue do not match.

注解

方法是一个帮助器方法,该方法由派生ListControl自类的控件调用,用于将指定的数据源绑定到控件。 PerformDataBindingThe PerformDataBinding method is a helper method that is called by the control that is derived from the ListControl class to bind the specified data source to the control.

适用于

另请参阅