Export (0) Print
Expand All

_Assembly.GetType Method (String, Boolean, Boolean)

Provides COM objects with version-independent access to the GetType method.

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

Type GetType(
	string name,
	bool throwOnError,
	bool ignoreCase
)

Parameters

name
Type: System.String

The full name of the type.

throwOnError
Type: System.Boolean

true to throw an exception if the type is not found; false to return null.

ignoreCase
Type: System.Boolean

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

Return Value

Type: System.Type
A Type object that represents the specified class.

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetType method gets the Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft