SystemInfo GetTypeFromString Method (String, Boolean, Boolean) | Apache log4net™ SDK Documentation

Loads the type specified in the type string.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static Type GetTypeFromString(
    	string typeName,
    	bool throwOnError,
    	bool ignoreCase
    )

    Public Shared Function GetTypeFromString (
    	typeName As String,
    	throwOnError As Boolean,
    	ignoreCase As Boolean
    ) As Type

    public:
    static Type^ GetTypeFromString(
    	String^ typeName,
    	bool throwOnError,
    	bool ignoreCase
    )

    static member GetTypeFromString :
            typeName : string *
            throwOnError : bool *
            ignoreCase : bool -> Type

#### Parameters

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: Type
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(string, bool).

If the type name is not fully qualified it will be loaded from the assembly that is directly calling this method. If the type is not found in the assembly then all the loaded assemblies will be searched for the type.

See Also

#### Reference

SystemInfo Class
GetTypeFromString Overload
log4net.Util Namespace