Universal Windows Service Class Library

Utility.GetType Method (String)

Returns the type class containing the given type.

public static Type GetType(
   string typeString
);

Parameters

typeString
String containing the type of a specified class.

Return Value

Type class containing the given string type.

Remarks

This function returns the type class containing the given type.

Firstly the type of the class will be searched in the executing assembly but if no matching type exists there all loaded assemblies will be searched if access is granted.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThrown if no type was given.
TypeLoadExceptionMeans that the given type was not found in all loaded assemblies.

See Also

Utility Class | uws.Utilities Namespace | Utility.GetType Overload List | Activator