AssemblyBuilder.GetType(String, Boolean, Boolean) Metoda

Definice

Získá zadaný typ z typů, které byly definovány a vytvořeny v aktuální 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

Parametry

name
String

Název typu, který chcete vyhledat.

throwOnError
Boolean

truevyvolání výjimky, pokud typ nebyl nalezen; v opačném případě . false

ignoreCase
Boolean

trueignorovat velikost písmen názvu typu při hledání; v opačném případě . false

Návraty

Zadaný typ nebo null pokud typ nebyl nalezen nebo ještě nebyl vytvořen.

Atributy

Poznámky

Typ nelze najít, dokud nebyl vytvořen voláním CreateType metody.

Platí pro