GuardArgumentIsNotOfTypeT Method (Boolean, Object, String) | 
 Throws an exception if argumentValue is of type T or a subtype of T.
 
    Namespace: 
   Enkoni.Framework
    Assembly:
   Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static void ArgumentIsNotOfType<T>(
	bool disallowDerivedTypes,
	Object argumentValue,
	string argumentName
)
Public Shared Sub ArgumentIsNotOfType(Of T) ( 
	disallowDerivedTypes As Boolean,
	argumentValue As Object,
	argumentName As String
)
public:
generic<typename T>
static void ArgumentIsNotOfType(
	bool disallowDerivedTypes, 
	Object^ argumentValue, 
	String^ argumentName
)
static member ArgumentIsNotOfType : 
        disallowDerivedTypes : bool * 
        argumentValue : Object * 
        argumentName : string -> unit 
Parameters
- disallowDerivedTypes
 - Type: SystemBoolean
Indicates if derived types are also not allowed. - argumentValue
 - Type: SystemObject
The argument value to test. - argumentName
 - Type: SystemString
Name of the argument. 
Type Parameters
- T
 - The type that is not expected.
 
Exceptions
Remarks
See Also