PropertyDescriptor.GetTypeFromName(String) Método

Definición

Devuelve un tipo con su nombre.

protected:
 Type ^ GetTypeFromName(System::String ^ typeName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Calls ComponentType.Assembly.GetType on the non-fully qualified typeName, which the trimmer cannot recognize.")]
protected Type? GetTypeFromName(string? typeName);
protected Type GetTypeFromName(string typeName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Calls ComponentType.Assembly.GetType on the non-fully qualified typeName, which the trimmer cannot recognize.")>]
member this.GetTypeFromName : string -> Type
member this.GetTypeFromName : string -> Type
Protected Function GetTypeFromName (typeName As String) As Type

Parámetros

typeName
String

Nombre completo del ensamblado del tipo que se va a recuperar.

Devoluciones

que Type coincide con el nombre de tipo especificado o null si no se encuentra una coincidencia.

Atributos

Comentarios

Para buscar el tipo adecuado, este método comprueba primero el ensamblado del tipo al que hace PropertyDescriptor referencia. Si no encuentra el tipo en el ensamblado, llama a Type.GetType.

Se aplica a