Gets the Type object with the specified name, ignoring case, and optionally throws an exception on error.
[Visual Basic] Overloads Public Function GetType( _ ByVal name As String, _ ByVal throwOnError As Boolean, _ ByVal ignoreCase As Boolean _ ) As Type [C#] public Type GetType( string name, bool throwOnError, bool ignoreCase ); [C++] public: Type* GetType( String* name, bool throwOnError, bool ignoreCase ); [JScript] public function GetType( name : String, throwOnError : Boolean, ignoreCase : Boolean ) : Type;
A Type object that represents the specified class.
Exception Type | Condition |
---|---|
ArgumentNullException | if name is null. |
Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.GetType Overload List