ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateBoolean Method
An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
Example

In This Topic
    ValidateBoolean Method
    In This Topic
    Validates an expression value to make sure any literal booleans can be evaluate to either true or false.
    Syntax
    'Declaration
     
    Public Shared Sub ValidateBoolean( _
       ByVal expression As ExpressionInfo _
    ) 
    public static void ValidateBoolean( 
       ExpressionInfo expression
    )

    Parameters

    expression
    An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
    Exceptions
    ExceptionDescription
    Throws if the value is not evalueted to boolean.
    Example
    ExpressionInfo value = ExpressionInfo.FromString("true");
    ValidationUtils.ValidateBoolean(value);
    See Also