Represents the state of an attempt to bind values from an HTTP Request to an action method, which includes
validation information.
public ref class ModelStateDictionary : System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateEntry ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateEntry ^>>, System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateEntry ^>
public class ModelStateDictionary : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string,Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry>>, System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry>
type ModelStateDictionary = class
interface seq<KeyValuePair<string, ModelStateEntry>>
interface IEnumerable
interface IReadOnlyCollection<KeyValuePair<string, ModelStateEntry>>
interface IReadOnlyDictionary<string, ModelStateEntry>
Public Class ModelStateDictionary
Implements IEnumerable(Of KeyValuePair(Of String, ModelStateEntry)), IReadOnlyCollection(Of KeyValuePair(Of String, ModelStateEntry)), IReadOnlyDictionary(Of String, ModelStateEntry)
Adds the specified errorMessage to the Errors instance
that is associated with the specified key. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Adds the specified exception to the Errors instance
that is associated with the specified key. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
This API supports the MVC's infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
Attempts to add the specified exception to the Errors
instance that is associated with the specified key. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Attempts to add the specified errorMessage to the Errors
instance that is associated with the specified key. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Adds the specified exception to the Errors instance
that is associated with the specified key. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Adds the specified exception to the Errors instance
that is associated with the specified expression. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Adds the specified errorMessage to the Errors instance
that is associated with the specified expression. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.
Adds the specified exception to the Errors instance
that is associated with the specified expression. If the maximum number of allowed
errors has already been recorded, ensures that a TooManyModelErrorsException exception is
recorded instead.