Share via


ReportDataSource Constructor (String, Type)

 

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

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

Syntax

public ReportDataSource(
    string name,
    Type dataSourceValue
)
public:
ReportDataSource(
    String^ name,
    Type^ dataSourceValue
)
new : 
        name:string *
        dataSourceValue:Type -> ReportDataSource
Public Sub New (
    name As String,
    dataSourceValue As Type
)

Parameters

  • name
    Type: System.String

    The name of the data source, as specified in the report definition for the current report.

See Also

ReportDataSource Overload
ReportDataSource Class
Microsoft.Reporting.WinForms Namespace

Return to top