Klasa ReportDataSource
Represents a data source for a report.
Hierarchia dziedziczenia
Object
Microsoft.Reporting.WebForms.ReportDataSource
Przestrzeń nazw: Microsoft.Reporting.WebForms
Zestaw: Microsoft.ReportViewer.WebForms (w Microsoft.ReportViewer.WebForms.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 in the Value property. |
![]() |
ReportDataSource(String, DataTable) | Constructs a named data source with a DataTable in the Value property. |
![]() |
ReportDataSource(String, Object) | Constructs a named data source with a value. |
![]() |
ReportDataSource(String, String) | Constructs a named data source with a data source ID. |
![]() |
ReportDataSource(String, IDataSource) | Constructs a named data source with an IDataSource in the Value property. |
Początek
Właściwości
Nazwa | Opis | |
---|---|---|
![]() |
DataMember | Specifies the name of the list of data for binding. |
![]() |
DataSourceId | Gets or sets the data source ID. |
![]() |
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
Please see LocalReport for code examples.
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.