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
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()
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public sealed class HyperlinkPolicy
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 |