ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions Struct
The (ParseHTMLUnsafeOptions or TrustedHTMLParserOptions) union: the options of Document.ParseHtmlUnsafe, a dictionary or the options vetted by a Trusted Types policy (TrustedTypePolicy.CreateParserOptions).
public readonly struct ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions : IEquatable<ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions>Properties
| Name | Description |
|---|---|
| ParseHtmlUnsafeOptions | Gets the value as options, or null when the union holds another type. |
| TrustedHtmlParserOptions | Gets the value as trusted parser options, or null when the union holds another type. |
| Value | Gets the value of the union: a ParseHtmlUnsafeOptions or a TrustedHtmlParserOptions. |
ParseHtmlUnsafeOptions
DynamicMarkup.csGets the value as options, or null when the union holds another type.
public ParseHtmlUnsafeOptions? ParseHtmlUnsafeOptions { get; }Property value
TrustedHtmlParserOptions
DynamicMarkup.csGets the value as trusted parser options, or null when the union holds another type.
public TrustedHtmlParserOptions? TrustedHtmlParserOptions { get; }Property value
Value
DynamicMarkup.csGets the value of the union: a ParseHtmlUnsafeOptions or a TrustedHtmlParserOptions.
public object Value { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| FromParseHtmlUnsafeOptions(ParseHtmlUnsafeOptions) | Creates the union from options. |
| FromTrustedHtmlParserOptions(TrustedHtmlParserOptions) | Creates the union from trusted parser options. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions)
DynamicMarkup.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions other)Parameters
otherParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
DynamicMarkup.csFromParseHtmlUnsafeOptions(ParseHtmlUnsafeOptions)
DynamicMarkup.csCreates the union from options.
public static ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions FromParseHtmlUnsafeOptions(ParseHtmlUnsafeOptions value)FromTrustedHtmlParserOptions(TrustedHtmlParserOptions)
DynamicMarkup.csCreates the union from trusted parser options.
public static ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions FromTrustedHtmlParserOptions(TrustedHtmlParserOptions value)GetHashCode()
DynamicMarkup.csOperators
| Name | Description |
|---|---|
| operator ==(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions) | Determines whether two unions are equal. |
| implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(ParseHtmlUnsafeOptions) | Converts options to the union. |
| implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(TrustedHtmlParserOptions) | Converts trusted parser options to the union. |
| operator !=(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions) | Determines whether two unions are different. |
operator ==(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions)
DynamicMarkup.csDetermines whether two unions are equal.
public static bool operator ==(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions left, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions right)Parameters
leftParseHtmlUnsafeOptionsOrTrustedHtmlParserOptionsrightParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions
Returns
op_Implicit overloads
implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(ParseHtmlUnsafeOptions)
DynamicMarkup.csConverts options to the union.
public static implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(ParseHtmlUnsafeOptions value)implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(TrustedHtmlParserOptions)
DynamicMarkup.csConverts trusted parser options to the union.
public static implicit operator ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions(TrustedHtmlParserOptions value)operator !=(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions)
DynamicMarkup.csDetermines whether two unions are different.
public static bool operator !=(ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions left, ParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions right)Parameters
leftParseHtmlUnsafeOptionsOrTrustedHtmlParserOptionsrightParseHtmlUnsafeOptionsOrTrustedHtmlParserOptions