| 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
)
Protected Overridable Function GetDataErrors (
propertyName As String
) As IEnumerable(Of String)
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 See Also