Xceed Grid for WinForms v4.3 Documentation
Evaluate Method (ConstantValueCriterion)


Xceed.Validation.v1.3 Assembly > Xceed.Validation Namespace > ConstantValueCriterion Class : Evaluate Method
The validation provider used for the validation.
The input component containing the text value to be used for the validation.
Text value to be validated.
A reference to a string representing the last error message of the validation failure, if any.
Launches the validation on the input component.
Syntax
'Declaration
 
Public Overrides Function Evaluate( _

   ByVal validationProvider As ValidationProvider, _

   ByVal componentToValidate As Object, _

   ByVal valueToValidate As String, _

   ByRef validationMessage As String _

) As Boolean
'Usage
 
Dim instance As ConstantValueCriterion

Dim validationProvider As ValidationProvider

Dim componentToValidate As Object

Dim valueToValidate As String

Dim validationMessage As String

Dim value As Boolean

 

value = instance.Evaluate(validationProvider, componentToValidate, valueToValidate, validationMessage)

Parameters

validationProvider
The validation provider used for the validation.
componentToValidate
The input component containing the text value to be used for the validation.
valueToValidate
Text value to be validated.
validationMessage
A reference to a string representing the last error message of the validation failure, if any.

Return Value

true if the component contains valid information based on this validation expression; false otherwise.
Remarks
When overriding this method in a derived class, be sure to call the base class's method before your own code so that the base class's criteria can be validated first.
Requirements

Target Platforms: Windows 7, 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

Reference

ConstantValueCriterion Class
ConstantValueCriterion Members
Base Implementation in Evaluate