ValueProviderResult Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Result of an GetValue(String) operation.
public value class ValueProviderResult : IEquatable<Microsoft::AspNetCore::Mvc::ModelBinding::ValueProviderResult>, System::Collections::Generic::IEnumerable<System::String ^>
public struct ValueProviderResult : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult>, System.Collections.Generic.IEnumerable<string>
public readonly struct ValueProviderResult : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult>, System.Collections.Generic.IEnumerable<string>
type ValueProviderResult = struct
interface seq<string>
interface IEnumerable
Public Structure ValueProviderResult
Implements IEnumerable(Of String), IEquatable(Of ValueProviderResult)
- Inheritance
-
ValueProviderResult
- Implements
ValueProviderResult can represent a single submitted value or multiple submitted values.
Use FirstValue to consume only a single value, regardless of whether a single value or multiple values were submitted.
Treat ValueProviderResult as an IEnumerable<T> to consume all values, regardless of whether a single value or multiple values were submitted.
Value |
Creates a new ValueProviderResult. |
Value |
Creates a new ValueProviderResult using InvariantCulture. |
None |
A ValueProviderResult that represents a lack of data. |
Culture |
Gets or sets the CultureInfo associated with the values. |
First |
Gets the first value based on the order values were provided in the request. Use FirstValue to get a single value for processing regardless of whether a single or multiple values were provided in the request. |
Length |
Gets the number of submitted values. |
Values |
Gets or sets the values. |
Equals(Object) | Indicates whether this instance and a specified object are equal. |
Equals(Value |
Indicates whether the current object is equal to another object of the same type. |
Get |
Gets an IEnumerator<T> for this ValueProviderResult. |
Get |
Returns the hash code for this instance. |
To |
Returns the fully qualified type name of this instance. |
Equality(Value |
Compares two ValueProviderResult objects for equality. |
Explicit(Value |
Converts the provided ValueProviderResult into a comma-separated string containing all submitted values. |
Explicit(Value |
Converts the provided ValueProviderResult into a an array of String containing all submitted values. |
Inequality(Value |
Compares two ValueProviderResult objects for inequality. |
IEnumerable. |
Returns an enumerator that iterates through a collection. |
Convert |
Attempts to convert the values in |
Convert |
Attempts to convert the values in |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |