DetailsView.IDataBoundControl.DataSource 属性

定义

有关此属性的说明,请参见 DataSourceFor a description of this property, see DataSource.

property System::Object ^ System::Web::UI::WebControls::IDataBoundControl::DataSource { System::Object ^ get(); void set(System::Object ^ value); };
object System.Web.UI.WebControls.IDataBoundControl.DataSource { get; set; }
 Property DataSource As Object Implements IDataBoundControl.DataSource

属性值

一个表示数据源的对象,DetailsView 控件从该数据源中检索其数据。An object that represents the data source from which the DetailsView control retrieves its data. 默认值为 nullThe default is null.

实现

注解

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

适用于