ScriptSecurityPermission Class

A security permission applied during execution of report scripts.

Namespace: DevExpress.XtraReports

Assembly: DevExpress.XtraReports.v18.1.dll

Declaration

public class ScriptSecurityPermission
Public Class ScriptSecurityPermission

As opposed to setting necessary permissions globally for the entire application, you can add necessary permissions to the XtraReport.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.

You can add any security permission which is a descendant of the CodeAccessPermission class, or inherit from the ScriptSecurityPermission class and implement a custom security permission. In this case, the library containing this security permission should be added to the References list of your application.

Important

To apply restrictions, it is required to enable the code access security (CAS) policy in the application's configuration file.

To learn more, see Scripting Security.

Inheritance

Object
ScriptSecurityPermission

Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

See Also