XtraReport.ScriptSecurityPermissions Property

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)]
public ScriptSecurityPermissionCollection ScriptSecurityPermissions { get; }
<SRCategory(ReportStringId.CatBehavior)>
Public ReadOnly Property ScriptSecurityPermissions As ScriptSecurityPermissionCollection

Property Value

Type Description
ScriptSecurityPermissionCollection

A ScriptSecurityPermissionCollection object, specifying a collection of security permissions.

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.

See Also