ReportDataSource 建構函式 (String, IEnumerable)
發佈時間: 2016年4月
使用 Value 屬性中的 IEnumerable 物件,建構具名資料來源。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
public ReportDataSource(
string name,
IEnumerable dataSourceValue
)
public:
ReportDataSource(
String^ name,
IEnumerable^ dataSourceValue
)
new :
name:string *
dataSourceValue:IEnumerable -> ReportDataSource
Public Sub New (
name As String,
dataSourceValue As IEnumerable
)
參數
- name
資料來源的名稱,如目前報表的報表定義所指定。
- dataSourceValue
包含資料的 IEnumerable 物件。
請參閱
ReportDataSource 超載
ReportDataSource 類別
Microsoft.Reporting.WinForms 命名空間
回到頁首