ValidateContext.ValidationErrors Property

Definition

Gets the dictionary of validation errors collected during validation.

public:
 property System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::Validation::ValidationError ^> ^> ^ ValidationErrors { System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::Validation::ValidationError ^> ^> ^ get(); };
public System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Validation.ValidationError>>? ValidationErrors { get; }
member this.ValidationErrors : System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Validation.ValidationError>>
Public ReadOnly Property ValidationErrors As IReadOnlyDictionary(Of String, IReadOnlyList(Of ValidationError))

Property Value

IReadOnlyDictionary<String,IReadOnlyList<Microsoft.Extensions.Validation.ValidationError>>

Remarks

Keys are property names or paths, and values are the collection of validation errors reported for that path. There are no guarantees whether or not this dictionary is lazy. Usages should treat null and empty dictionary the same.

Applies to