Skip to main content

ReportStorageExtension.IsValidUrl(String) Method

Determines whether the report identifier passed to the current report storage is valid.

Namespace: DevExpress.XtraReports.Extensions

Assembly: DevExpress.XtraReports.v25.1.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

Declaration

public virtual bool IsValidUrl(
    string url
)

Parameters

Name Type Description
url String

A report name (identifier).

Returns

Type Description
Boolean

true if the specified name (identifier) is valid; otherwise, false.

Remarks

Use the IsValidUrl method to validate the report name (identifier) that is passed to your Report Storage. Implement your own logic to prohibit identifiers that contain spaces or other specific characters. Return true if no validation is required.

The reporting component calls the IsValidUrl method when the component opens a report and before the GetData method.

See Also