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> |