ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateInteger Method / ValidateInteger(ExpressionInfo,Int32,Int32) Method
An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
An System.Int32 value representing the minimun size allowed.
An System.Int32 value representing the maximum size allowed.
Example

In This Topic
    ValidateInteger(ExpressionInfo,Int32,Int32) Method
    In This Topic
    Valiates an expression value to make sure it is valid integer value and is within the specified min/max values.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ValidateInteger( _
       ByVal expression As ExpressionInfo, _
       ByVal min As Integer, _
       ByVal max As Integer _
    ) 
    public static void ValidateInteger( 
       ExpressionInfo expression,
       int min,
       int max
    )

    Parameters

    expression
    An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
    min
    An System.Int32 value representing the minimun size allowed.
    max
    An System.Int32 value representing the maximum size allowed.
    Exceptions
    ExceptionDescription
    Throws if the value is out of range limit.
    Example
    ExpressionInfo value = ExpressionInfo.FromString("2");
    ValidationUtils.ValidateInteger(value, 1, 5);
    See Also