使用 Value 属性中的 IEnumerable 构造命名数据源。
命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Public Sub New ( _
    name As String, _
    dataSourceValue As IEnumerable _
)
用法
Dim name As String
Dim dataSourceValue As IEnumerable
Dim instance As New ReportDataSource(name, dataSourceValue)
public ReportDataSource(
    string name,
    IEnumerable dataSourceValue
)
public:
ReportDataSource(
    String^ name, 
    IEnumerable^ dataSourceValue
)
new : 
        name:string * 
        dataSourceValue:IEnumerable -> ReportDataSource
public function ReportDataSource(
    name : String, 
    dataSourceValue : IEnumerable
)
参数
- name
 类型:System.String
 数据源的名称,如当前报表的报表定义中所指定。
- dataSourceValue
 类型:System.Collections.IEnumerable
 包含数据的 IEnumerable 对象。