Classe ReportDataSource
Represents a data source for a report.
Hierarquia de herança
Object
Microsoft.Reporting.WinForms.ReportDataSource
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (em Microsoft.ReportViewer.WinForms.dll)
Sintaxe
'Declaração
Public NotInheritable Class ReportDataSource
public sealed class ReportDataSource
public ref class ReportDataSource sealed
[<Sealed>]
type ReportDataSource = class end
public final class ReportDataSource
O tipo ReportDataSource expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
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. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
Name | Gets or sets the name of the report data source. | |
Value | Gets or sets the instance of the report data source. |
Superior
Métodos
Nome | Descrição | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) | |
GetHashCode | Serves as the default hash function. (Herdado de Object.) | |
GetType | Gets the Type of the current instance. (Herdado de Object.) | |
ToString | Returns a string that represents the current object. (Herdado de Object.) |
Superior
Comentários
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.
Exemplos
For code examples, see LocalReport.
Acesso thread-safe
Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.