Condividi tramite


Costruttore ReportDataSource (String, DataTable)

Crea un'origine dati denominata con un oggetto DataTable nella proprietà Value.

Spazio dei nomi:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (in Microsoft.ReportViewer.WebForms.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • name
    Tipo: String
    Nome dell'origine dati, come specificato nella definizione del rapporto per il rapporto corrente.
  • dataSourceValue
    Tipo: DataTable
    Oggetto DataTable contenente i dati.

Vedere anche

Riferimenti

ReportDataSource Classe

Overload ReportDataSource

Spazio dei nomi Microsoft.Reporting.WebForms