ValidationErrorContext 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.
Represents the context of a validation error.
public value class ValidationErrorContext
[System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")]
public readonly struct ValidationErrorContext
[<System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")>]
type ValidationErrorContext = struct
Public Structure ValidationErrorContext
- Inheritance
- Attributes
Properties
| Container |
Gets a reference to the container object of the validated property. |
| Errors |
Gets the list of error messages associated with the validation error. |
| Name |
Gets the name of the property or parameter that caused the validation error. |
| Path |
Gets the full path from the root object to the property or parameter that caused the validation error. |