Loads the type specified in the type string.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- relativeType
- Type: System Type
A sibling type to use to load the type.
- typeName
- Type: System String
The name of the type to load.
- throwOnError
- Type: System Boolean
Flag set to true to throw an exception if the type cannot be loaded.
- ignoreCase
- Type: System Boolean
true to ignore the case of the type name; otherwise, false
Return Value
Type: TypeThe type loaded or null if it could not be loaded.
Remarks
If the type name is fully qualified, i.e. if contains an assembly name in the type name, the type will be loaded from the system using GetType(string, bool).
If the type name is not fully qualified, it will be loaded from the assembly containing the specified relative type. If the type is not found in the assembly then all the loaded assemblies will be searched for the type.
See Also