Udostępnij za pośrednictwem


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
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 in the Value property.
Metoda publiczna ReportDataSource(String, DataTable) Constructs a named data source with a DataTable in the Value property.
Metoda publiczna ReportDataSource(String, Object) Constructs a named data source with a value.
Metoda publiczna ReportDataSource(String, String) Constructs a named data source with a data source ID.
Metoda publiczna ReportDataSource(String, IDataSource) Constructs a named data source with an IDataSource in the Value property.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna DataMember Specifies the name of the list of data for binding.
Właściwość publiczna DataSourceId Gets or sets the data source ID.
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

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.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.Reporting.WebForms