 | ViewModel.GetErrors Method |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
Namespace:
BionicCode.Utilities.Net.Standard.ViewModel
Assembly:
BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
SyntaxPublic Function GetErrors (
Optional propertyName As String = Nothing
) As IEnumerable
Dim instance As ViewModel
Dim propertyName As String
Dim returnValue As IEnumerable
returnValue = instance.GetErrors(propertyName)
abstract GetErrors :
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> IEnumerable
override GetErrors :
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> IEnumerable
function GetErrors(propertyName);
Parameters
- propertyName (Optional)
- Type: System.String
The of the property of which the error messages should be returned.
Return Value
Type:
IEnumerableAn
IEnumerable containing all error messages of the specified property.
Implements
INotifyDataErrorInfo.GetErrors(String)
RemarksIf the propertyName is null all current error messages will be returned.
See Also