Class ValidationSelectedViewModel<T>
- Namespace
- H.Extensions.Validation
- Assembly
- H.Extensions.Validation.dll
public class ValidationSelectedViewModel<T> : SelectBindable<T>, INotifyPropertyChanged, IModelBindable<T>, IModelBindable, ISearchable, ISelectable, IDataErrorInfo
Type Parameters
T
- Inheritance
-
ValidationSelectedViewModel<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
ValidationSelectedViewModel(T)
public ValidationSelectedViewModel(T t)
Parameters
t
T
Properties
Error
Gets an error message indicating what is wrong with this object.
public string Error { get; }
Property Value
- string
An error message indicating what is wrong with this object. The default is an empty string ("").
this[string]
Gets the error message for the property with the given name.
public string this[string columnName] { get; }
Parameters
columnName
stringThe name of the property whose error message to get.
Property Value
- string
The error message for the property. The default is an empty string ("").
Methods
Validation(string, out string)
protected virtual bool Validation(string columnName, out string error)