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