ValidationModelBaseAddValidation Method |
Sets a property to validate on update.
Note: validation attributes must be set on the property for this to work.
Namespace:
Xcalibur.Extensions.MVVM.Models
Assembly:
Xcalibur.Extensions.MVVM (in Xcalibur.Extensions.MVVM.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void AddValidation(
string propertyName,
string friendlyName = null
)
Public Sub AddValidation (
propertyName As String,
Optional friendlyName As String = Nothing
)
public:
virtual void AddValidation(
String^ propertyName,
String^ friendlyName = nullptr
) sealed
abstract AddValidation :
propertyName : string *
?friendlyName : string
(* Defaults:
let _friendlyName = defaultArg friendlyName null
*)
-> unit
override AddValidation :
propertyName : string *
?friendlyName : string
(* Defaults:
let _friendlyName = defaultArg friendlyName null
*)
-> unit
Parameters
- propertyName
- Type: SystemString
The property name. - friendlyName (Optional)
- Type: SystemString
Friendly name used on messages (optional).
Implements
IValidationAddValidation(String, String)See Also