xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-33f82cec.md
Retrieves a collection of components serialized along with the report, such as data sources.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(false)]
public XRComponentCollection ComponentStorage { get; }
<Browsable(False)>
Public ReadOnly Property ComponentStorage As XRComponentCollection
| Type | Description |
|---|---|
| DevExpress.XtraReports.UI.XRComponentCollection |
A collection that contains report components.
|
Use the DataSourceManager class methods to manage the ComponentStorage at runtime.
The DataSourceManager.AddDataSources method allows you to add data sources to the storage. Review the following help topic for more information: Manage Data Sources at Runtime.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ComponentStorage property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
reporting-winforms-provide-authentication-to-access-json-data/CS/Form1.cs#L102
int i = 0;
foreach(var component in report.ComponentStorage) {
var jsonDS = (component as DevExpress.DataAccess.Json.JsonDataSource);
reporting-winforms-provide-authentication-to-access-json-data/VB/Form1.vb#L102
Dim i As Integer = 0
For Each component In report.ComponentStorage
Dim jsonDS = (TryCast(component, DevExpress.DataAccess.Json.JsonDataSource))
See Also