Partilhar via


Propriedade ReportDataSource.Value

Gets or sets the instance of the report data source.

Namespace:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)

Sintaxe

'Declaração
Public Property Value As Object
public Object Value { get; set; }
public:
property Object^ Value {
    Object^ get ();
    void set (Object^ value);
}
member Value : Object with get, set
function get Value () : Object
function set Value (value : Object)

Valor de propriedade

Tipo: Object
An Object containing an instance of the report data source.

Comentários

Value may be an instance of DataTable, a IEnumerable value (for example, DataView or Array), or a IDataSource.

If this value is an instance of IEnumerable, all elements in the collection must be of the same type, and names of the public properties of the element (as retrieved by the GetProperties method) must match the field names of the corresponding report data source.

If the type of Value is not any of the aforementioned types, this property throws an exception.

Consulte também

Referência

ReportDataSource Classe

Namespace Microsoft.Reporting.WebForms