FileOrStringOrFormData Struct
The (File or USVString or FormData) union of ElementInternals.SetFormValue.
public readonly struct FileOrStringOrFormData : IEquatable<FileOrStringOrFormData>- Implements
Properties
| Name | Description |
|---|---|
| Value | Gets the value: a File, a String or a FormData. |
Value
ElementInternals.csMethods
| Name | Description |
|---|---|
| Equals(FileOrStringOrFormData) | 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. |
| FromFile(File) | Creates the union from a file. |
| FromFormData(FormData) | Creates the union from a form data. |
| FromString(string) | Creates the union from a string. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(FileOrStringOrFormData)
ElementInternals.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(FileOrStringOrFormData other)Parameters
otherFileOrStringOrFormData- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
ElementInternals.csFromFile(File)
ElementInternals.csCreates the union from a file.
public static FileOrStringOrFormData FromFile(File value)FromFormData(FormData)
ElementInternals.csCreates the union from a form data.
public static FileOrStringOrFormData FromFormData(FormData value)FromString(string)
ElementInternals.csCreates the union from a string.
public static FileOrStringOrFormData FromString(string value)GetHashCode()
ElementInternals.csToString()
ElementInternals.csOperators
| Name | Description |
|---|---|
| operator ==(FileOrStringOrFormData, FileOrStringOrFormData) | Returns whether the two unions hold the same value. |
| implicit operator FileOrStringOrFormData(File) | Converts a file to the union. |
| implicit operator FileOrStringOrFormData(FormData) | Converts a form data to the union. |
| implicit operator FileOrStringOrFormData(string) | Converts a string to the union. |
| operator !=(FileOrStringOrFormData, FileOrStringOrFormData) | Returns whether the two unions hold different values. |
operator ==(FileOrStringOrFormData, FileOrStringOrFormData)
ElementInternals.csReturns whether the two unions hold the same value.
public static bool operator ==(FileOrStringOrFormData left, FileOrStringOrFormData right)op_Implicit overloads
implicit operator FileOrStringOrFormData(File)
ElementInternals.csConverts a file to the union.
public static implicit operator FileOrStringOrFormData(File value)implicit operator FileOrStringOrFormData(FormData)
ElementInternals.csConverts a form data to the union.
public static implicit operator FileOrStringOrFormData(FormData value)implicit operator FileOrStringOrFormData(string)
ElementInternals.csConverts a string to the union.
public static implicit operator FileOrStringOrFormData(string value)operator !=(FileOrStringOrFormData, FileOrStringOrFormData)
ElementInternals.csReturns whether the two unions hold different values.
public static bool operator !=(FileOrStringOrFormData left, FileOrStringOrFormData right)