ValidationHelper.ValidateEnum(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 enumerator.
public:
static void ValidateEnum(int value, int minValue, int maxValue, System::String ^ paramName);
public static void ValidateEnum (int value, int minValue, int maxValue, string paramName);
static member ValidateEnum : int * int * int * string -> unit
Public Shared Sub ValidateEnum (value As Integer, minValue As Integer, maxValue As Integer, paramName As String)
Parameters
- value
- Int32
The value to validate.
- minValue
- Int32
The minimum enumeration value.
- maxValue
- Int32
The maximum enumeration value.
- paramName
- String
The name of the parameter to throw the exception for.