ReportDataSource 建構函式 (String, Type)
將 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 物件。