ModelStateDictionary
Enumerator
KeyEnumerable
KeyEnumerator
PrefixEnumerable
ValueEnumerable
ValueEnumerator
DefaultMaxAllowedErrors
ModelStateDictionary()
ModelStateDictionary(Int32)
ModelStateDictionary(ModelStateDictionary)
Count
ErrorCount
HasReachedMaxErrors
IsValid
Keys
MaxAllowedErrors
Root
this[String]
ValidationState
Values
AddModelError(String, String)
AddModelError(String, Exception, ModelMetadata)
Clear()
ClearValidationState(String)
ContainsKey(String)
FindKeysWithPrefix(String)
GetEnumerator()
GetFieldValidationState(String)
GetValidationState(String)
MarkFieldSkipped(String)
MarkFieldValid(String)
Merge(ModelStateDictionary)
Remove(String)
SetModelValue(String, ValueProviderResult)
SetModelValue(String, Object, String)
StartsWithPrefix(String, String)
TryAddModelError(String, String)
TryAddModelError(String, Exception, ModelMetadata)
TryAddModelException(String, Exception)
TryGetValue(String, ModelStateEntry)
AddModelError<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>, String)
AddModelError<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>, Exception, ModelMetadata)
Remove<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>)
RemoveAll<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>)
TryAddModelException<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>, Exception)
net10.0
namespace Microsoft.AspNetCore.Mvc.ModelBinding
{
[DebuggerDisplay("Entries = {Count}, IsValid = {IsValid}")]
[DebuggerTypeProxy(typeof(ModelStateDictionaryDebugView))]
[DefaultMember("Item")]
public class ModelStateDictionary : IEnumerable<KeyValuePair<string!, ModelStateEntry?>>, IReadOnlyCollection<KeyValuePair<string!, ModelStateEntry?>>, IReadOnlyDictionary<string!, ModelStateEntry?>, IEnumerable
{
public ModelStateEntry? this[string! key] { get; }
}
}
| nuget.org | 0.1 % Reference this API |
|---|---|
| .NET | 5.06.07.08.09.010.0 |
| .NET Core | 3.03.1 |
Information specific to net10.0 | |
| Assembly | Microsoft.AspNetCore.Mvc.Abstractions , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Requires any:
|
| Platform Restrictions | The property getter is supported on all platforms. |
- Built-in API
- Package-provided API