Skip to main content
A newer version of this page is available.

XtraReport.ScriptSecurityPermissions Property

OBSOLETE

This property is now obsolete. See the following article for more information: https://go.devexpress.com/Reporting_ScriptExecutionMode.aspx

Provides access to the collection of security permissions used to permit particular operations in report scripts.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[SRCategory(ReportStringId.CatBehavior)]
[Browsable(false)]
[Obsolete("This property is now obsolete. See the following article for more information: https://go.devexpress.com/Reporting_ScriptExecutionMode.aspx")]
public ScriptSecurityPermissionCollection ScriptSecurityPermissions { get; }

Property Value

Type Description
ScriptSecurityPermissionCollection

A ScriptSecurityPermissionCollection object, specifying a collection of security permissions.

Remarks

As opposed to setting necessary permissions globally for the entire application, you can add necessary permissions to the ScriptSecurityPermissions collection of a specific report.

The ScriptSecurityPermission.Name property identifies the class name of a security permission (a CodeAccessPermission descendant), and the ScriptSecurityPermission.Deny property specifies whether the execution of such scripts is allowed or denied.

ScriptSecurityPermissions

Important

To apply restrictions, it is required to enable the code access security (CAS) policy in the application’s configuration file. Otherwise, an attempt to execute a report script will cause an exception.

To learn more, see Scripting Security.

Example

See Also