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] <Serializable> NotInheritable Public Class TypeInitializationException Inherits SystemException [C#] [Serializable] public sealed class TypeInitializationException : SystemException [C++] [Serializable] public __gc __sealed class TypeInitializationException : public SystemException [JScript] public Serializable class TypeInitializationException extends SystemException
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.
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)