TrustedTypePolicyOptions Class

https://w3c.github.io/trusted-types/dist/spec/#dictdef-trustedtypepolicyoptions

public sealed class TrustedTypePolicyOptions

Constructors

NameDescription
TrustedTypePolicyOptions()

TrustedTypePolicyOptions()

public TrustedTypePolicyOptions()

No documentation is available.

Properties

NameDescription
CreateHtmlGets the callback used to create TrustedHTML values.
CreateParserOptionsGets the callback used to create TrustedHTMLParserOptions values.
CreateScriptGets the callback used to create TrustedScript values.
CreateScriptUrlGets the callback used to create TrustedScriptURL values.

CreateHtml

TrustedTypes.cs

Gets the callback used to create TrustedHTML values.

public CreateHtmlCallback? CreateHtml { get; init; }

CreateParserOptions

TrustedTypes.cs

Gets the callback used to create TrustedHTMLParserOptions values.

public CreateParserOptionsCallback? CreateParserOptions { get; init; }

CreateScript

TrustedTypes.cs

Gets the callback used to create TrustedScript values.

public CreateScriptCallback? CreateScript { get; init; }

CreateScriptUrl

TrustedTypes.cs

Gets the callback used to create TrustedScriptURL values.

public CreateScriptUrlCallback? CreateScriptUrl { get; init; }