AssemblyBuilder.GetType(String, Boolean, Boolean) 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.
Gets the specified type from the types that have been defined and created in the current AssemblyBuilder.
public:
override Type ^ GetType(System::String ^ name, bool throwOnError, bool ignoreCase);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types might be removed by trimming. If the type name is a string literal, consider using Type.GetType instead.")]
public override Type? GetType(string name, bool throwOnError, bool ignoreCase);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types might be removed")]
public override Type? GetType(string name, bool throwOnError, bool ignoreCase);
public override Type? GetType(string name, bool throwOnError, bool ignoreCase);
public override Type GetType(string name, bool throwOnError, bool ignoreCase);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types might be removed by trimming. If the type name is a string literal, consider using Type.GetType instead.")>]
override this.GetType : string * bool * bool -> Type
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Types might be removed")>]
override this.GetType : string * bool * bool -> Type
override this.GetType : string * bool * bool -> Type
Public Overrides Function GetType (name As String, throwOnError As Boolean, ignoreCase As Boolean) As Type
Parameters
- name
- String
The name of the type to search for.
- throwOnError
- Boolean
true to throw an exception if the type is not found; otherwise, false.
- ignoreCase
- Boolean
true to ignore the case of the type name when searching; otherwise, false.
Returns
The specified type, or null if the type is not found or has not been created yet.
- Attributes
Remarks
A type cannot be found until it has been created by calling the CreateType method.