ValidatingValueBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The ValidatingValueBase class provides basic services for base classes to support validation via the IDataErrorInfo interface.
public ref class ValidatingValueBase abstract : System::ComponentModel::IDataErrorInfo, System::ComponentModel::INotifyPropertyChanged
[System.Serializable]
public abstract class ValidatingValueBase : System.ComponentModel.IDataErrorInfo, System.ComponentModel.INotifyPropertyChanged
[<System.Serializable>]
type ValidatingValueBase = class
interface IDataErrorInfo
interface INotifyPropertyChanged
Public MustInherit Class ValidatingValueBase
Implements IDataErrorInfo, INotifyPropertyChanged
- Inheritance
-
ValidatingValueBase
- Derived
- Attributes
- Implements
Constructors
ValidatingValueBase() |
Properties
Error |
Gets an error message indicating what is wrong with this object. |
IsValid |
Gets a value indicating whether the value is valid. |
Item[String] |
Gets the error message for the property with the given name. |
ValidationRules |
Gets the collection of validation rules used to validate the value. |
Methods
AddValidationRule(DataErrorInfoValidationRule) |
Adds a validation rule to the ValidationRules collection. |
ClearValidationRules() |
Clears the ValidationRules collection. |
InvalidateValidationResult() |
Calling InvalidateValidationResult causes the Validation to be reevaluated. |
NotifyPropertyChanged(String) |
Notifies listeners that a property has changed. |
RemoveValidationRule(DataErrorInfoValidationRule) |
Removes a validation rule from the ValidationRules collection. |
Validate() |
Called to validate the entire object. |
Validate(String) |
Called to validate the property with the given name. |
Events
PropertyChanged |
Occurs when a property value changes. |