Skip to main content

ReportStorageWebExtension.CanSetData(String) Method

Determines whether a report with the specified URL can be saved.

Namespace: DevExpress.XtraReports.Web.Extensions

Assembly: DevExpress.XtraReports.v24.1.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

public virtual bool CanSetData(
    string url
)

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 a report storage can save a report with the specified name; otherwise, false.

Remarks

Use the CanSetData method to determine whether a user can save a report with the specified URL. Add custom logic that returns false for reports that should be read-only. Return true if no valdation is required. This method is called only for valid URLs (if the ReportStorageWebExtension.IsValidUrl method returns true).

For a code example, create a new Web project from the DevExpress Visual Studio template and review the code for the CustomReportStorageWebExtension class in the Services folder.

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.

See Also