HtmlForgeX

API Reference

Class

TrustedJavaScript

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed
Attributes
JsonConverter(typeof(TrustedJavaScriptExpressionJsonConverter))

JavaScript that a caller has explicitly reviewed and chosen to execute as inline code.

Inheritance

  • Object
  • TrustedJavaScript

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Methods

public static TrustedJavaScript Arrow(String parameters, String expression) #
Returns: TrustedJavaScript

Marks an arrow-function expression assembled from trusted source fragments.

Parameters

parameters System.String requiredposition: 0
expression System.String requiredposition: 1
public static TrustedJavaScript FromTrustedSource(String javaScript) #
Returns: TrustedJavaScript

Marks JavaScript from a trusted source for an inline script context.

Parameters

javaScript System.String requiredposition: 0
public override String ToString() #
Returns: String