31 references to Errors
Microsoft.AspNetCore.Mvc.Abstractions (16)
ModelBinding\ModelStateDictionary.cs (16)
190/// Adds the specified <paramref name="exception"/> to the <see cref="ModelStateEntry.Errors"/> instance 230/// Adds the specified <paramref name="exception"/> to the <see cref="ModelStateEntry.Errors"/> instance 249/// Attempts to add the specified <paramref name="exception"/> to the <see cref="ModelStateEntry.Errors"/> 317/// Adds the specified <paramref name="errorMessage"/> to the <see cref="ModelStateEntry.Errors"/> instance 333/// Attempts to add the specified <paramref name="errorMessage"/> to the <see cref="ModelStateEntry.Errors"/> 359modelState.Errors.Add(errorMessage); 456ErrorCount += source.Value.Errors.Count - target.Errors.Count; 522entry.Value.Errors.Clear(); 683modelState.Errors.Add(exception); 722ErrorCount -= node.Errors.Count; 856Errors.Clear(); 857for (var i = 0; i < entry.Errors.Count; i++) 859Errors.Add(entry.Errors[i]); 871Errors.Clear();
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\ModelBindingHelper.cs (2)
408kvp.Value.Errors.Clear(); 428entry.Errors.Clear();
ModelBinding\UnsupportedContentTypeFilter.cs (1)
45var errors = kvp.Value.Errors;
SerializableError.cs (1)
41var errors = keyModelStatePair.Value.Errors;
ValidationProblemDetails.cs (1)
42var errors = keyModelStatePair.Value.Errors;
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DefaultHtmlGenerator.cs (7)
584if (entry.Errors.Count > 0) 670if (entry != null && entry.Errors.Count > 0) 741var modelErrors = tryGetModelStateResult ? entry.Errors : null; 819entryForModel.Errors.Count == 0)) 850for (var i = 0; i < modelState.Errors.Count; i++) 852var modelError = modelState.Errors[i]; 1262if (viewContext.ViewData.ModelState.TryGetValue(fullName, out var entry) && entry.Errors.Count > 0)
ModelStateDictionaryExtensions.cs (3)
16/// Adds the specified <paramref name="errorMessage"/> to the <see cref="ModelStateEntry.Errors"/> instance 38/// Adds the specified <paramref name="exception"/> to the <see cref="ModelStateEntry.Errors"/> instance 64/// Adds the specified <paramref name="exception"/> to the <see cref="ModelStateEntry.Errors"/> instance