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.v18.1.Web.dll

Syntax

public virtual bool CanSetData(
    string url
)

Parameters

Type Name Description
String url

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.

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