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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.PropertyEditing Namespace