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.v22.1.dll
NuGet Package: DevExpress.Reporting.Core
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.
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.