Edit

Share via


PropertyDescriptor.GetTypeFromName(String) Method

Definition

Returns a type using its name.

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

Parameters

typeName
String

The assembly-qualified name of the type to retrieve.

Returns

A Type that matches the given type name, or null if a match cannot be found.

Attributes

Remarks

To find the appropriate type, this method first checks the assembly of the type that this PropertyDescriptor references. If it does not find the type in the assembly, it calls Type.GetType.

Applies to