GetType Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the Type with the specified name, performing a case-sensitive search.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Function GetType ( _
    typeName As String _
) As Type
public static Type GetType(
    string typeName
)
public:
static Type^ GetType(
    String^ typeName
)
static member GetType : 
        typeName:string -> Type 
public static function GetType(
    typeName : String
) : Type

Parameters

  • typeName
    Type: System. . :: . .String
    The assembly-qualified name of the type to get. See AssemblyQualifiedName. If the type is in the currently executing assembly or in Mscorlib.dll, it is sufficient to supply the type name qualified by its namespace.

Return Value

Type: System. . :: . .Type
The type with the specified name, if found; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

Type Class

GetType Overload

System Namespace