Partilhar via


Construtor ReportDataSource (String, DataTable)

Constructs a named data source with a DataTable object in the Value property.

Namespace:  Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (em Microsoft.ReportViewer.WinForms.dll)

Sintaxe

'Declaração
Public Sub New ( _
    name As String, _
    dataSourceValue As DataTable _
)
public ReportDataSource(
    string name,
    DataTable dataSourceValue
)
public:
ReportDataSource(
    String^ name, 
    DataTable^ dataSourceValue
)
new : 
        name:string * 
        dataSourceValue:DataTable -> ReportDataSource
public function ReportDataSource(
    name : String, 
    dataSourceValue : DataTable
)

Parâmetros

  • name
    Tipo: String
    The name of the data source, as specified in the report definition for the current report.
  • dataSourceValue
    Tipo: DataTable
    A DataTable object that contains the data.

Consulte também

Referência

ReportDataSource Classe

Sobrecargas ReportDataSource

Namespace Microsoft.Reporting.WinForms