ValidatingValue<T> 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 ValidatingValue class supports setting a value and validating the value.
generic <typename T>
public ref class ValidatingValue : Microsoft::Management::UI::Internal::ValidatingValueBase
template <typename T>
[Windows::Foundation::Metadata::WebHostHidden]
class ValidatingValue : Microsoft::Management::UI::Internal::ValidatingValueBase
[System.Serializable]
public class ValidatingValue<T> : Microsoft.Management.UI.Internal.ValidatingValueBase
[<System.Serializable>]
type ValidatingValue<'T> = class
inherit ValidatingValueBase
Public Class ValidatingValue(Of T)
Inherits ValidatingValueBase
Type Parameters
- T
The generic parameter.
- Inheritance
- Attributes
Constructors
ValidatingValue<T>() |
Properties
Error |
Gets an error message indicating what is wrong with this object. (Inherited from ValidatingValueBase) |
IsValid |
Gets a value indicating whether the value is valid. (Inherited from ValidatingValueBase) |
Item[String] |
Gets the error message for the property with the given name. (Inherited from ValidatingValueBase) |
ValidationRules |
Gets the collection of validation rules used to validate the value. (Inherited from ValidatingValueBase) |
Value |
Gets or sets a value. |
Methods
AddValidationRule(DataErrorInfoValidationRule) |
Adds a validation rule to the ValidationRules collection. (Inherited from ValidatingValueBase) |
ClearValidationRules() |
Clears the ValidationRules collection. (Inherited from ValidatingValueBase) |
ForceValidationUpdate() |
Forces a validation update to occur. |
GetCastValue() |
Gets the raw value cast/transformed into type T. |
InvalidateValidationResult() |
Calling InvalidateValidationResult causes the Validation to be reevaluated. (Inherited from ValidatingValueBase) |
NotifyPropertyChanged(String) |
Notifies listeners that a property has changed. (Inherited from ValidatingValueBase) |
RemoveValidationRule(DataErrorInfoValidationRule) |
Removes a validation rule from the ValidationRules collection. (Inherited from ValidatingValueBase) |
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. (Inherited from ValidatingValueBase) |