SystemInfoGetTypeFromString Method (Assembly, String, Boolean, Boolean)Apache log4net™ SDK Documentation
Loads the type specified in the type string.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 4.0

public static Type GetTypeFromString(
	Assembly relativeAssembly,
	string typeName,
	bool throwOnError,
	bool ignoreCase


Type: System.ReflectionAssembly
An assembly to load the type from.
Type: SystemString
The name of the type to load.
Type: SystemBoolean
Flag set to true to throw an exception if the type cannot be loaded.
Type: SystemBoolean
true to ignore the case of the type name; otherwise, false

Return Value

Type: Type
The type loaded or null if it could not be loaded.

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 specified assembly. If the type is not found in the assembly then all the loaded assemblies will be searched for the type.

See Also