SanitizerElement Struct
The SanitizerElement typedef: (DOMString or SanitizerElementNamespace).
public readonly struct SanitizerElement : IEquatable<SanitizerElement>- Implements
Properties
| Name | Description |
|---|---|
| ElementNamespace | Gets the value as an element name with its namespace, or null when the union holds another type. |
| Name | Gets the value as an element name, or null when the union holds another type. |
| Value | Gets the value of the union: an element name or an element name with its namespace. |
ElementNamespace
SanitizerTypes.csGets the value as an element name with its namespace, or null when the union holds another type.
public SanitizerElementNamespace? ElementNamespace { get; }Property value
Value
SanitizerTypes.csMethods
| Name | Description |
|---|---|
| Equals(SanitizerElement) | 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. |
| FromSanitizerElementNamespace(SanitizerElementNamespace) | Creates the union from an element name with its namespace. |
| FromString(string) | Creates the union from an element name. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(SanitizerElement)
SanitizerTypes.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(SanitizerElement other)Parameters
otherSanitizerElement- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
SanitizerTypes.csFromSanitizerElementNamespace(SanitizerElementNamespace)
SanitizerTypes.csCreates the union from an element name with its namespace.
public static SanitizerElement FromSanitizerElementNamespace(SanitizerElementNamespace value)FromString(string)
SanitizerTypes.csCreates the union from an element name.
public static SanitizerElement FromString(string value)GetHashCode()
SanitizerTypes.csOperators
| Name | Description |
|---|---|
| operator ==(SanitizerElement, SanitizerElement) | Determines whether two unions are equal. |
| implicit operator SanitizerElement(SanitizerElementNamespace) | Converts an element name with its namespace to the union. |
| implicit operator SanitizerElement(string) | Converts an element name to the union. |
| operator !=(SanitizerElement, SanitizerElement) | Determines whether two unions are different. |
operator ==(SanitizerElement, SanitizerElement)
SanitizerTypes.csDetermines whether two unions are equal.
public static bool operator ==(SanitizerElement left, SanitizerElement right)op_Implicit overloads
implicit operator SanitizerElement(SanitizerElementNamespace)
SanitizerTypes.csConverts an element name with its namespace to the union.
public static implicit operator SanitizerElement(SanitizerElementNamespace value)implicit operator SanitizerElement(string)
SanitizerTypes.csConverts an element name to the union.
public static implicit operator SanitizerElement(string value)operator !=(SanitizerElement, SanitizerElement)
SanitizerTypes.csDetermines whether two unions are different.
public static bool operator !=(SanitizerElement left, SanitizerElement right)