Partager via


Constructeur ReportDataSource (String, DataTable)

Construit une source de données nommée avec un objet DataTable dans la propriété Value.

Espace de noms :  Microsoft.Reporting.WinForms
Assembly :  Microsoft.ReportViewer.WinForms (en Microsoft.ReportViewer.WinForms.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    name As String, _
    dataSourceValue As DataTable _
)
'Utilisation
Dim name As String
Dim dataSourceValue As DataTable

Dim instance As New ReportDataSource(name, dataSourceValue)
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
)

Paramètres

  • name
    Type : System.String
    Nom de la source de données, tel que spécifié dans la définition de rapport pour le rapport actuel.

Voir aussi

Référence

ReportDataSource Classe

Surcharge ReportDataSource

Espace de noms Microsoft.Reporting.WinForms