Click or drag to resize

ObservableObjectBaseGetDataErrors Method

Gets the validation errors for a specified property or for the entire entity.

Namespace: TomsToolbox.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
protected virtual IEnumerable<string> GetDataErrors(
	string? propertyName
)

Parameters

propertyName  String
The name of the property to retrieve validation errors for; or null or Empty, to retrieve entity-level errors.

Return Value

IEnumerableString
The validation errors for the property or entity.
Remarks
The default implementation returns the ValidationAttribute errors of the property.
See Also