Assembly.GetType Method (String, Boolean)
Gets the Type object that represents a specified class (type) in the current assembly, and optionally throws an exception.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual Type GetType (
string name,
bool throwOnError
)
Parameters
- name
The full name of the class you want to look for in the current assembly. - throwOnError
true if an exception will be thrown if the specified class is not found; otherwise, false.
Return Value
The Type object that represents the specified class.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.