AssemblyGetType Method (String) |
Gets the
Type object with the specified name in the assembly instance.
Namespace: System.ReflectionAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual Type GetType(
string name
)
Parameters
- name
- Type: SystemString
The full name of the type.
Return Value
Type:
TypeAn object that represents the specified class, or null if the class is not found.
Exceptions Exception | Condition |
---|
ArgumentException | name is invalid. |
ArgumentNullException | name is null. |
FileNotFoundException | name requires a dependent assembly that could not be found. |
FileLoadException | name requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and name requires a dependent assembly that was not preloaded. |
BadImageFormatException | name requires a dependent assembly, but the file is not a valid assembly. -or-name requires a dependent assembly which was compiled for a version of the runtime later than the currently loaded version. |
See Also