This documentation is archived and is not being maintained.

TypeInitializationException Class

The exception that is thrown as a wrapper around the exception thrown by the class initializer. This class cannot be inherited.

For a list of all members of this type, see TypeInitializationException Members.


[Visual Basic]
NotInheritable Public Class TypeInitializationException
   Inherits SystemException
public sealed class TypeInitializationException : SystemException
public __gc __sealed class TypeInitializationException : public
class TypeInitializationException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


When a class initializer fails to initialize a type, a TypeInitializationException is created and passed a reference to the exception thrown by the type's class initializer. The InnerException property of TypeInitializationException holds the underlying exception.

TypeInitializationException uses the HRESULT COR_E_TYPEINITIALIZATION, that has the value 0x80131534.

For a list of initial property values for an instance of TypeInitializationException, see the TypeInitializationException constructors.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

TypeInitializationException Members | System Namespace | Exception | Handling and Throwing Exceptions