.NET Helper Packages
C#
Show/Hide TOC
Model
Data
Error
Get
Errors 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#
Copy
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
INotifyDataErrorInfo
GetErrors(String)
See Also
Reference
ModelDataError Class
Common.Core.Classes Namespace
In This Article
Definition
Parameters
Return Value
Implements
See Also