_Assembly.GetType Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides COM objects with version-independent access to the GetType methods.
Overloads
| GetType(String, Boolean, Boolean) | Provides COM objects with version-independent access to the GetType(String, Boolean, Boolean) method. | 
| GetType(String, Boolean) | Provides COM objects with version-independent access to the GetType(String, Boolean) method. | 
| GetType() | Provides COM objects with version-independent access to the GetType() method. | 
| GetType(String) | Provides COM objects with version-independent access to the GetType(String) method. | 
Remarks
This method is for access to managed classes from unmanaged code, and should not be called from managed code.
The GetType methods get the Type object that represents the specified type.
GetType(String, Boolean, Boolean)
Provides COM objects with version-independent access to the GetType(String, Boolean, Boolean) method.
public:
 Type ^ GetType(System::String ^ name, bool throwOnError, bool ignoreCase);public Type GetType(string name, bool throwOnError, bool ignoreCase);abstract member GetType : string * bool * bool -> TypePublic Function GetType (name As String, throwOnError As Boolean, ignoreCase As Boolean) As TypeParameters
- name
- String
The full name of the type.
- throwOnError
- Boolean
true to throw an exception if the type is not found; false to return null.
- ignoreCase
- Boolean
true to ignore the case of the type name; otherwise, false.
Returns
A Type object that represents the specified class.
Remarks
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.
See also
Applies to
GetType(String, Boolean)
Provides COM objects with version-independent access to the GetType(String, Boolean) method.
public:
 Type ^ GetType(System::String ^ name, bool throwOnError);public Type GetType(string name, bool throwOnError);abstract member GetType : string * bool -> TypePublic Function GetType (name As String, throwOnError As Boolean) As TypeParameters
- name
- String
The full name of the type.
- throwOnError
- Boolean
true to throw an exception if the type is not found; false to return null.
Returns
A Type object that represents the specified class.
Remarks
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 and optionally throws an exception if the type is not found.
See also
Applies to
GetType()
Provides COM objects with version-independent access to the GetType() method.
public:
 Type ^ GetType();public Type GetType();abstract member GetType : unit -> TypePublic Function GetType () As TypeReturns
A Type object.
Remarks
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 of the current instance.
See also
Applies to
GetType(String)
Provides COM objects with version-independent access to the GetType(String) method.
public:
 Type ^ GetType(System::String ^ name);public Type GetType(string name);abstract member GetType : string -> TypePublic Function GetType (name As String) As TypeParameters
- name
- String
The full name of the type.
Returns
A Type object that represents the specified class, or null if the class is not found.
Remarks
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.