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