Share via


ValidationErrorContext Struct

Definition

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
ValidationErrorContext
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.

Applies to