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)
Syntax
protected virtual IEnumerable<string> GetDataErrors(
	string? propertyName
)

Parameters

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

Return Value

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