共用方式為


ReportDataSource 類別

代表報表的資料來源。

命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 microsoft.reportviewer.webforms.dll)

語法

'宣告
Public NotInheritable Class ReportDataSource
'用途
Dim instance As ReportDataSource
public sealed class ReportDataSource
public ref class ReportDataSource sealed
public final class ReportDataSource
public final class ReportDataSource

備註

ReportDataSource 類別用來搭配 LocalReport 物件的 DataSources 集合,以將一或多個必要的資料來源加入本機報表中。以程式設計的方式將報表加入 ReportViewer 控制項時,這是必要的

範例

請參閱 LocalReport,以取得程式碼範例。

繼承階層

System.Object
  Microsoft.Reporting.WebForms.ReportDataSource

執行緒安全性

此類型的任何公用靜態 (在 Visual Basic 中為 Shared ) 成員為安全執行緒。任何執行個體成員皆不能保證是安全執行緒。

另請參閱

參考

ReportDataSource 成員
Microsoft.Reporting.WebForms 命名空間