ModelDataErrorGetErrors Method

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

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public IEnumerable GetErrors(
	string? propertyName
)

Parameters

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

Return Value

IEnumerable
The validation errors for the property or entity.

Implements

INotifyDataErrorInfoGetErrors(String)

See Also