Class HyperlinkPolicy
Defines rules for hyperlink Schemes validation and sanitization in reports. Controls which URL schemes are allowed or blocked based on the selected mode.
Inheritance
System.Object
HyperlinkPolicy
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public sealed class HyperlinkPolicy : Object
Constructors
HyperlinkPolicy()
Declaration
public HyperlinkPolicy()
Properties
AllowedSchemes
List of allowed URL schemes (e.g., http, https, mailto). Used only when the mode is set to AllowOnlySchemes.
Declaration
public List<string> AllowedSchemes { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
BlockedSchemes
List of blocked URL schemes (e.g., javascript, vbscript, data). Used to prevent execution of potentially harmful links. Applies to AllowAll and BlockedSchemes modes.
Declaration
public List<string> BlockedSchemes { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
Mode
Specifies the hyperlink schemes validation mode (e.g., AllowAll, BlockedSchemes, AllowOnlySchemes). Determines how URLs are filtered or restricted.
Declaration
public HyperlinkMode Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| HyperlinkMode |