Share via


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 (
         stringname,
         boolthrowOnError
)

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, and 4.1.

See Also

Reference

Assembly Class
Assembly Members
System.Reflection Namespace