ASP.NET Core 12.1.12
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class CodeExecutionPolicy

Controls execution of custom code and assemblies within reports. Helps enforce secure execution environments.

Inheritance
System.Object
CodeExecutionPolicy
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public sealed class CodeExecutionPolicy : Object

Constructors

CodeExecutionPolicy()

Declaration
public CodeExecutionPolicy()

Properties

AllowCustomAssembly

Indicates whether custom assemblies can be loaded and executed in reports. Defaults to true.

Declaration
public bool AllowCustomAssembly { get; set; }
Property Value
Type Description
System.Boolean

AllowCustomCode

Indicates whether custom code (e.g., embedded scripts) is allowed to execute in reports. Defaults to true.

Declaration
public bool AllowCustomCode { get; set; }
Property Value
Type Description
System.Boolean

AllowedAssemblies

A list of allowed assembly names (simple, strong, or full) that can be loaded. Leave empty to disallow all assemblies.

Declaration
public List<string> AllowedAssemblies { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

BlockedNamespaces

A list of blocked root namespaces to restrict reflective or scripted access. Leave empty to allow all namespaces.

Declaration
public List<string> BlockedNamespaces { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>
In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved