Klasa ReportDataSource
Represents a data source for a report.
Hierarchia dziedziczenia
Object
Microsoft.Reporting.WinForms.ReportDataSource
Przestrzeń nazw: Microsoft.Reporting.WinForms
Zestaw: Microsoft.ReportViewer.WinForms (w Microsoft.ReportViewer.WinForms.dll)
Składnia
'Deklaracja
Public NotInheritable Class ReportDataSource
public sealed class ReportDataSource
public ref class ReportDataSource sealed
[<Sealed>]
type ReportDataSource = class end
public final class ReportDataSource
Typ ReportDataSource uwidacznia następujące elementy członkowskie.
Konstruktorzy
Nazwa | Opis | |
---|---|---|
![]() |
ReportDataSource() | Constructs an empty data source. |
![]() |
ReportDataSource(String) | Constructs a named data source. |
![]() |
ReportDataSource(String, IEnumerable) | Constructs a named data source with an IEnumerable object in the Value property. |
![]() |
ReportDataSource(String, DataTable) | Constructs a named data source with a DataTable object in the Value property. |
![]() |
ReportDataSource(String, Object) | Constructs a named data source with a value. |
![]() |
ReportDataSource(String, Type) | Constructs a named data source with the Value property initialized as a particular type. |
![]() |
ReportDataSource(String, BindingSource) | Constructs a named data source with a BindingSource object in the Value property. |
Początek
Właściwości
Nazwa | Opis | |
---|---|---|
![]() |
Name | Gets or sets the name of the report data source. |
![]() |
Value | Gets or sets the instance of the report data source. |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Odziedziczone z Object). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetType | Gets the Type of the current instance. (Odziedziczone z Object). |
![]() |
ToString | Returns a string that represents the current object. (Odziedziczone z Object). |
Początek
Uwagi
The ReportDataSource class is used with the DataSources collection of a LocalReport object to add one or more required data sources to a local report. This is necessary when adding a report to the ReportViewer control.
Przykłady
For code examples, see LocalReport.
Bezpieczeństwo wątku
Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.