Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / ValidationExpression Class / CanEvaluate Method
The input component on which the evaluation is performed.


In This Topic
    CanEvaluate Method (ValidationExpression)
    In This Topic
    Returns a boolean value indicating whether the validation expression can be evaluated.
    Syntax
    'Declaration
     
    Public MustOverride Function CanEvaluate( _
       ByVal componentToValidate As Object _
    ) As Boolean
    'Usage
     
    Dim instance As ValidationExpression
    Dim componentToValidate As Object
    Dim value As Boolean
     
    value = instance.CanEvaluate(componentToValidate)
    public abstract bool CanEvaluate( 
       object componentToValidate
    )

    Parameters

    componentToValidate
    The input component on which the evaluation is performed.

    Return Value

    true if the validation expression is well formatted and has all required operands and operators to be evaluated on the passed System.Windows.Forms.Control; false otherwise.
    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