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