LocalReport.DataSources 属性

获取报表使用的数据源集合。

命名空间:  Microsoft.Reporting.WinForms
程序集:  Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.dll 中)

语法

声明
<BrowsableAttribute(False)> _
Public ReadOnly Property DataSources As ReportDataSourceCollection
[BrowsableAttribute(false)]
public ReportDataSourceCollection DataSources { get; }
[BrowsableAttribute(false)]
public:
property ReportDataSourceCollection^ DataSources {
    ReportDataSourceCollection^ get ();
}
[<BrowsableAttribute(false)>]
member DataSources : ReportDataSourceCollection with get
function get DataSources () : ReportDataSourceCollection

属性值

类型:Microsoft.Reporting.WinForms.ReportDataSourceCollection
一个只读 ReportDataSourceCollection 对象。

备注

Although the collection property is ready only, you can add or remove data sources in the returned ReportDataSourceCollection object.

请参阅

参考

LocalReport 类

Microsoft.Reporting.WinForms 命名空间