ReportDataSource 建構函式 (String, IDataSource)
使用 Value 屬性中的 IDataSource,建構具名資料來源。
命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)
語法
'宣告
Public Sub New ( _
name As String, _
dataSourceValue As IDataSource _
)
'用途
Dim name As String
Dim dataSourceValue As IDataSource
Dim instance As New ReportDataSource(name, dataSourceValue)
public ReportDataSource(
string name,
IDataSource dataSourceValue
)
public:
ReportDataSource(
String^ name,
IDataSource^ dataSourceValue
)
new :
name:string *
dataSourceValue:IDataSource -> ReportDataSource
public function ReportDataSource(
name : String,
dataSourceValue : IDataSource
)
參數
- name
型別:System.String
資料來源的名稱,如目前報表的報表定義所指定。
- dataSourceValue
型別:System.Web.UI.IDataSource
包含資料的 IDataSource 物件。