Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

SystemInfo.GetTypeFromString�Method�(Assembly, String, Boolean, Boolean)

Loads the type specified in the type string.

[Visual�Basic]
Overloads�Public�Shared�Function�GetTypeFromString( _
���ByVal relativeAssembly�As�Assembly,�_
���ByVal typeName�As�String,�_
���ByVal throwOnError�As�Boolean,�_
���ByVal ignoreCase�As�Boolean�_
)�As�Type
[C#]
public�static�Type�GetTypeFromString(
���AssemblyrelativeAssembly,
���stringtypeName,
���boolthrowOnError,
���boolignoreCase
);

Parameters

relativeAssembly
An assembly to load the type from.
typeName
The name of the type to load.
throwOnError
Flag set to true to throw an exception if the type cannot be loaded.
ignoreCase
true to ignore the case of the type name; otherwise, false

Return Value

The 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.

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

SystemInfo Class | log4net.Util Namespace | SystemInfo.GetTypeFromString Overload List