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
"/>
359
modelState.
Errors
.Add(errorMessage);
456
ErrorCount += source.Value.
Errors
.Count - target.
Errors
.Count;
522
entry.Value.
Errors
.Clear();
683
modelState.
Errors
.Add(exception);
722
ErrorCount -= node.
Errors
.Count;
856
Errors
.Clear();
857
for (var i = 0; i < entry.
Errors
.Count; i++)
859
Errors
.Add(entry.
Errors
[i]);
871
Errors
.Clear();
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\ModelBindingHelper.cs (2)
408
kvp.Value.
Errors
.Clear();
428
entry.
Errors
.Clear();
ModelBinding\UnsupportedContentTypeFilter.cs (1)
45
var errors = kvp.Value.
Errors
;
SerializableError.cs (1)
41
var errors = keyModelStatePair.Value.
Errors
;
ValidationProblemDetails.cs (1)
42
var errors = keyModelStatePair.Value.
Errors
;
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DefaultHtmlGenerator.cs (7)
584
if (entry.
Errors
.Count > 0)
670
if (entry != null && entry.
Errors
.Count > 0)
741
var modelErrors = tryGetModelStateResult ? entry.
Errors
: null;
819
entryForModel.
Errors
.Count == 0))
850
for (var i = 0; i < modelState.
Errors
.Count; i++)
852
var modelError = modelState.
Errors
[i];
1262
if (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