Class ValidationSelectedViewModel<T>
- Namespace
- HeBianGu.Service.Validation
- Assembly
- HeBianGu.Service.Validation.dll
public class ValidationSelectedViewModel<T> : SelectViewModel<T>, INotifyPropertyChanged, IModelViewModel<T>, IModelViewModel, ISearchable, ISelectViewModel, 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)