HelperIsValidRange Method |
Validates int value.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static string IsValidRange(
string name,
int value,
int minValue,
int maxValue
)
Public Shared Function IsValidRange (
name As String,
value As Integer,
minValue As Integer,
maxValue As Integer
) As String
public:
static String^ IsValidRange(
String^ name,
int value,
int minValue,
int maxValue
)
static member IsValidRange :
name : string *
value : int *
minValue : int *
maxValue : int -> string
Parameters
- name
- Type: SystemString
Name of the field. - value
- Type: SystemInt32
Value to validate. - minValue
- Type: SystemInt32
Minimum value. - maxValue
- Type: SystemInt32
Maximum value.
Return Value
Type:
StringReturns empty string if valid; otherwise error message.
See Also