ValidationHelper.ValidateInt(Int32, Int32, Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.