Partilhar via


Construtor ReportDataSource (String, Type)

Constructs a named data source with the Value property initialized as a particular type.

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

Sintaxe

'Declaração
Public Sub New ( _
    name As String, _
    dataSourceValue As Type _
)
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
)

Parâmetros

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

Consulte também

Referência

ReportDataSource Classe

Sobrecargas ReportDataSource

Namespace Microsoft.Reporting.WinForms