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