This documentation is archived and is not being maintained.
BuildManager::GetType Method (String, Boolean)
Visual Studio 2010
Finds a type in the top-level assemblies or in assemblies that are defined in configuration, and optionally throws an exception on failure.
Assembly: System.Web (in System.Web.dll)
Parameters
- typeName
- Type: System::String
The name of the type.
- throwOnError
- Type: System::Boolean
true to throw an exception if a Type object cannot be generated for the type name; otherwise, false.
| Exception | Condition |
|---|---|
| HttpException | typeName is invalid. - or - typeName is ambiguous. - or - typeName could not be found, and throwOnError is true. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: