Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetTypeFromName Method

PropertyDescriptor.GetTypeFromName Method

Returns a type using its name.

[Visual Basic]
Protected Function GetTypeFromName( _
   ByVal typeName As String _
) As Type
[C#]
protected Type GetTypeFromName(
 string typeName
);
[C++]
protected: Type* GetTypeFromName(
 String* typeName
);
[JScript]
protected function GetTypeFromName(
   typeName : String
) : Type;

Parameters

typeName
The assembly-qualified name of the type to retrieve.

Return Value

A Type that matches the given type name, or a null reference (Nothing in Visual Basic) if a match cannot be found.

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace

Show:
© 2015 Microsoft