Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker