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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.