Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AssemblyBuilder::GetType Method (String^, Boolean, Boolean)

.NET Framework (current version)
 

Gets the specified type from the types that have been defined and created in the current AssemblyBuilder.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual Type^ GetType(
	String^ name,
	bool throwOnError,
	bool ignoreCase
) override

Parameters

name
Type: System::String^

The name of the type to search for.

throwOnError
Type: System::Boolean

true to throw an exception if the type is not found; otherwise, false.

ignoreCase
Type: System::Boolean

true to ignore the case of the type name when searching; otherwise, false.

Return Value

Type: System::Type^

The specified type, or null if the type is not found or has not been created yet.

A type cannot be found until it has been created by calling the CreateType method.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft