Share via


PropertyValue.ValidateValue Method

When overridden in a derived class, checks that the specified Object contains a valid value before setting the Value property to it.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected MustOverride Sub ValidateValue ( _
    valueToValidate As Object _
)
protected abstract void ValidateValue(
    Object valueToValidate
)
protected:
virtual void ValidateValue(
    Object^ valueToValidate
) abstract
abstract ValidateValue : 
        valueToValidate:Object -> unit 
protected abstract function ValidateValue(
    valueToValidate : Object
)

Parameters

  • valueToValidate
    Type: System.Object
    The object to check for a valid value.

Remarks

In a typical implementation, if valueToValidate does not contain a valid value, this method should throw an exception.

.NET Framework Security

See Also

Reference

PropertyValue Class

Microsoft.Windows.Design.PropertyEditing Namespace

PropertyEntry

PropertyValueEditor

Other Resources

WPF Designer Extensibility

Property Editing Architecture