ReportStorageWebExtension.CanSetData(String) Method
Determines whether or not storing a report in a report storage using the specified URL is allowed.
Namespace: DevExpress.XtraReports.Web.Extensions
Assembly: DevExpress.XtraReports.v19.1.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Parameters
Name | Type | Description |
---|---|---|
url | String | A String specifying the URL that will identify a report in the storage. |
Returns
Type | Description |
---|---|
Boolean | true, if storing a report in a report storage using the specified URL is allowed; otherwise, false. |
Remarks
Use the CanSetData method to specify whether it is possible to save the report by a given URL. For instance, make this method return false for reports that should be read-only in your storage
This method is called only for a valid URL after the ReportStorageWebExtension.IsValidUrl method is called. If the CanSetData method returns true, the report will be saved in a report storage using the ReportStorageWebExtension.SetData method.
For a code example, see the Implement a Report Storage document.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanSetData(String) method.
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.