Gets the Type object with the specified name and optionally throws an exception on exception.
[Visual Basic] Overloads Overridable Public Function GetType( _ ByVal name As String, _ ByVal throwOnError As Boolean _ ) As Type [C#] public virtual Type GetType( string name, bool throwOnError ); [C++] public: virtual Type* GetType( String* name, bool throwOnError ); [JScript] public function GetType( name : String, throwOnError : 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