Version

ValidateCurrentValue(Exception) Method

Validates the current value of the editor. This method is called by the editor to perform editor specific validation of the current value.
Syntax
'Declaration
 
Protected Overloads Overridable Function ValidateCurrentValue( _
   ByRef error As Exception _
) As Boolean
protected virtual bool ValidateCurrentValue( 
   out Exception error
)

Parameters

error

Return Value

True if the value is valid, False otherwise.
Remarks

ValidateCurrentValue method is called by the editor to determine if the current value of the editor is valid or not. It uses this method to update the value of IsValueValid property. The derived editors can override this method to perform editor specific validations.

If the value entered by the user is invalid then the editor will take action based on the setting of InvalidValueBehavior property when the user attempts to leave the editor.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also