AssemblyBuilder.GetType(String, Boolean, Boolean) Método

Definición

Obtiene el tipo especificado de los tipos definidos y creados en el objeto actual 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

Parámetros

name
String

Nombre del tipo que se va a buscar.

throwOnError
Boolean

true para producir una excepción si no se encuentra el tipo; de lo contrario, false.

ignoreCase
Boolean

true para pasar por alto el caso del nombre de tipo al buscar; de lo contrario, false.

Devoluciones

Tipo especificado, o null si el tipo no se encuentra o aún no se ha creado.

Atributos

Comentarios

No se puede encontrar un tipo hasta que se haya creado llamando al CreateType método .

Se aplica a