FormDataEntryValue Struct
The value of a form data entry: a string or a file (https://xhr.spec.whatwg.org/#formdataentryvalue).
public readonly struct FormDataEntryValue : IEquatable<FormDataEntryValue>- Implements
Properties
| Name | Description |
|---|---|
| File | Gets the value as a file, or null when the value is a string. |
| StringValue | Gets the value as a string, or null when the value is a file. |
| Value | Gets the value: a String or a File. |
File
FormData.csStringValue
FormData.csValue
FormData.csMethods
| Name | Description |
|---|---|
| Equals(FormDataEntryValue) | 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 a form data entry value from a file. |
| FromString(string) | Creates a form data entry value from a string. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(FormDataEntryValue)
FormData.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(FormDataEntryValue other)Parameters
otherFormDataEntryValue- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
FormData.csFromFile(File)
FormData.csCreates a form data entry value from a file.
public static FormDataEntryValue FromFile(File value)FromString(string)
FormData.csCreates a form data entry value from a string.
public static FormDataEntryValue FromString(string value)GetHashCode()
FormData.csToString()
FormData.csOperators
| Name | Description |
|---|---|
| operator ==(FormDataEntryValue, FormDataEntryValue) | Determines whether two form data entry values are equal. |
| implicit operator FormDataEntryValue(File) | Converts a file to a form data entry value. |
| implicit operator FormDataEntryValue(string) | Converts a string to a form data entry value. |
| operator !=(FormDataEntryValue, FormDataEntryValue) | Determines whether two form data entry values are different. |
operator ==(FormDataEntryValue, FormDataEntryValue)
FormData.csDetermines whether two form data entry values are equal.
public static bool operator ==(FormDataEntryValue left, FormDataEntryValue right)op_Implicit overloads
implicit operator FormDataEntryValue(File)
FormData.csConverts a file to a form data entry value.
public static implicit operator FormDataEntryValue(File value)implicit operator FormDataEntryValue(string)
FormData.csConverts a string to a form data entry value.
public static implicit operator FormDataEntryValue(string value)operator !=(FormDataEntryValue, FormDataEntryValue)
FormData.csDetermines whether two form data entry values are different.
public static bool operator !=(FormDataEntryValue left, FormDataEntryValue right)