Поделиться через


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

'Declaration
Public Sub New ( _
    name As String, _
    dataSourceValue As Type _
)
'Usage
Dim name As String
Dim dataSourceValue As Type

Dim instance As New ReportDataSource(name, dataSourceValue)
public ReportDataSource (
    string name,
    Type dataSourceValue
)
public:
ReportDataSource (
    String^ name, 
    Type^ dataSourceValue
)
public ReportDataSource (
    String name, 
    Type dataSourceValue
)
public function ReportDataSource (
    name : String, 
    dataSourceValue : Type
)

Parameters

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

See Also

Reference

ReportDataSource Class
ReportDataSource Members
Microsoft.Reporting.WinForms Namespace