| GuardArgumentIsValidEnum Method (Type, Object, String, String) | 
 Throws an exception if argumentValue is not a member of enum type enumType.
 
    Namespace: 
   Enkoni.Framework
    Assembly:
   Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
 Syntax
Syntaxpublic static void ArgumentIsValidEnum(
	Type enumType,
	Object argumentValue,
	string argumentName,
	string message
)
Public Shared Sub ArgumentIsValidEnum ( 
	enumType As Type,
	argumentValue As Object,
	argumentName As String,
	message As String
)
public:
static void ArgumentIsValidEnum(
	Type^ enumType, 
	Object^ argumentValue, 
	String^ argumentName, 
	String^ message
)
static member ArgumentIsValidEnum : 
        enumType : Type * 
        argumentValue : Object * 
        argumentName : string * 
        message : string -> unit 
Parameters
- enumType
- Type: SystemType
 The type of enum.
- argumentValue
- Type: SystemObject
 The argument value to test.
- argumentName
- Type: SystemString
 Name of the argument.
- message
- Type: SystemString
 The message that will be passed to the exception.
 Exceptions
Exceptions See Also
See Also