ValidateContext.ValidationErrors Property
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.
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
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.