ValidationHelper.ValidateInt(Int32, Int32, Int32, String) Method

Definition

Validates an integer.

public:
 static void ValidateInt(int value, int minValue, int maxValue, System::String ^ paramName);
public static void ValidateInt (int value, int minValue, int maxValue, string paramName);
static member ValidateInt : int * int * int * string -> unit
Public Shared Sub ValidateInt (value As Integer, minValue As Integer, maxValue As Integer, paramName As String)

Parameters

value
Int32

The value to validate.

minValue
Int32

The minimum value.

maxValue
Int32

The maximum value.

paramName
String

The name of the parameter to throw the exception for.

Applies to