[]
Validates an integer value to make sure it is valid and is within the specified min/max range limit.
public static int ValidateInteger(int value, int min, int max)
| Type | Name | Description |
|---|---|---|
| int | value | An int value to validate. |
| int | min | An int value representing the minimum integer allowed. |
| int | max | An int value representing the maximum integer allowed. |
| Type | Description |
|---|---|
| int |
| Type | Condition |
|---|---|
| ReportDefinitionException | Throws if the value is out of range limit. |
Validates an integer value to make sure it is valid and is within the specified usual default RDL min/max range limit (0, int.maxvalue).
public static int ValidateInteger(int value)
| Type | Name | Description |
|---|---|---|
| int | value | An int value to validate. |
| Type | Description |
|---|---|
| int |
| Type | Condition |
|---|---|
| ReportDefinitionException | Throws if the value is out of range limit. |
Validates a nullable integer value to make sure it is valid and is within the specified min/max range limit.
public static void ValidateInteger(int? value, int min, int max)
| Type | Name | Description |
|---|---|---|
| int? | value | An int value to validate. |
| int | min | An int value representing the minimum integer allowed. |
| int | max | An int value representing the maximum integer allowed. |
| Type | Condition |
|---|---|
| ReportDefinitionException | Throws if the value is out of range limit. |
Validates a nullable integer value to make sure it is valid and is within the specified usual default RDL min/max range limit (0, int.maxvalue).
public static void ValidateInteger(int? value)
| Type | Name | Description |
|---|---|---|
| int? | value | An int value to validate. |
| Type | Condition |
|---|---|
| ReportDefinitionException | Throws if the value is out of range limit. |
Valiates an expression value to make sure it is valid integer value and is within the specified min/max values.
public static void ValidateInteger(ExpressionInfo expression, int min, int max)
| Type | Name | Description |
|---|---|---|
| ExpressionInfo | expression | An ExpressionInfo value to validate. |
| int | min | An int value representing the minimun size allowed. |
| int | max | An int value representing the maximum size allowed. |
ExpressionInfo value = ExpressionInfo.FromString("2");
ValidationUtils.ValidateInteger(value, 1, 5);
| Type | Condition |
|---|---|
| ReportDefinitionException | Throws if the value is out of range limit. |