Udostępnij za pośrednictwem


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
Metoda publiczna ReportDataSource() Constructs an empty data source.
Metoda publiczna ReportDataSource(String) Constructs a named data source.
Metoda publiczna ReportDataSource(String, IEnumerable) Constructs a named data source with an IEnumerable object in the Value property.
Metoda publiczna ReportDataSource(String, DataTable) Constructs a named data source with a DataTable object in the Value property.
Metoda publiczna ReportDataSource(String, Object) Constructs a named data source with a value.
Metoda publiczna ReportDataSource(String, Type) Constructs a named data source with the Value property initialized as a particular type.
Metoda publiczna ReportDataSource(String, BindingSource) Constructs a named data source with a BindingSource object in the Value property.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna Name Gets or sets the name of the report data source.
Właściwość publiczna Value Gets or sets the instance of the report data source.

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda publiczna 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.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.Reporting.WinForms