Export (0) Print
Expand All

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.

System.Object
   System.Exception
      System.SystemException
         System.TypeInitializationException

[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

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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft