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.2.Web.dll


public virtual bool CanSetData(
    string url
Public Overridable Function CanSetData(
    url As String
) As Boolean


Name Type Description
url String

A String specifying the URL that will identify a report in the storage.


Type Description

true, if storing a report in a report storage using the specified URL is allowed; otherwise, false.


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.


See Also