Returns the class by the given name, searching the module with the specified case sensitivity.
[Visual Basic] Overloads Public Function GetType( _ ByVal className As String, _ ByVal ignoreCase As Boolean _ ) As Type [C#] public Type GetType( string className, bool ignoreCase ); [C++] public: Type* GetType( String* className, bool ignoreCase ); [JScript] public function GetType( className : String, ignoreCase : Boolean ) : Type;
Value | Condition |
---|---|
A Type object representing the given classname. | The classname is located in this Module. |
null | Otherwise. |
Exception Type | Condition |
---|---|
ArgumentException | className is a null reference (in Visual Basic Nothing). |
TargetInvocationException | The class initializers are invoked and an exception is thrown. |
Module Class | Module Members | System.Reflection Namespace | Module.GetType Overload List