次の方法で共有


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
    現在のレポートのレポート定義に指定されているデータ ソースの名前。

関連項目

参照

ReportDataSource クラス

ReportDataSource オーバーロード

Microsoft.Reporting.WinForms 名前空間