ModelBindingResult Struct
Definition
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.
Contains the result of model binding.
public value class ModelBindingResult : IEquatable<Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult>
public struct ModelBindingResult : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
public readonly struct ModelBindingResult : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
type ModelBindingResult = struct
Public Structure ModelBindingResult
Implements IEquatable(Of ModelBindingResult)
- Inheritance
-
ModelBindingResult
- Implements
Properties
IsModelSet |
Gets a value indicating whether or not the Model value has been set.
This property can be used to distinguish between a model binder which does not find a value and
the case where a model binder sets the |
Model |
Gets the model associated with this context. |
Methods
Equals(ModelBindingResult) | 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. |
Failed() |
Creates a ModelBindingResult representing a failed model binding operation. |
GetHashCode() | Returns the hash code for this instance. |
Success(Object) |
Creates a ModelBindingResult representing a successful model binding operation. |
ToString() | Returns the fully qualified type name of this instance. |
Operators
Equality(ModelBindingResult, ModelBindingResult) |
Compares ModelBindingResult objects for equality. |
Inequality(ModelBindingResult, ModelBindingResult) |
Compares ModelBindingResult objects for inequality. |