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

Definition

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.

Applies to