AssemblyBuilder.GetType(String, Boolean, Boolean) Metodo

Definizione

Ottiene il tipo specificato dai tipi definiti e creati nell'oggetto corrente 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

Parametri

name
String

Nome del tipo da cercare.

throwOnError
Boolean

true per generare un'eccezione se il tipo non viene trovato; in caso contrario, false.

ignoreCase
Boolean

true per ignorare il caso del nome del tipo durante la ricerca; in caso contrario, false.

Valori restituiti

Tipo specificato oppure null se il tipo non viene trovato o non è ancora stato creato.

Attributi

Commenti

Impossibile trovare un tipo finché non viene creato chiamando il CreateType metodo .

Si applica a