.NET Framework Class Library
HandleProcessCorruptedStateExceptionsAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Enables managed code to handle exceptions that indicate a corrupted process state.

Namespace:  System.Runtime.ExceptionServices
Assembly:  mscorlib (in mscorlib.dll)
Syntax

Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := False, Inherited := False)> _
Public NotInheritable Class HandleProcessCorruptedStateExceptionsAttribute _
    Inherits Attribute
Visual Basic (Usage)
Dim instance As HandleProcessCorruptedStateExceptionsAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class HandleProcessCorruptedStateExceptionsAttribute : Attribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false, Inherited = false)]
public ref class HandleProcessCorruptedStateExceptionsAttribute sealed : public Attribute
F#
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = false)>]
type HandleProcessCorruptedStateExceptionsAttribute =  
    class
        inherit Attribute
    end
Remarks

NoteNote

Use this attribute only when absolutely necessary.

Beginning with the .NET Framework version 4 Beta 2, the CLR no longer delivers corrupted state exceptions that occur in the operating system (and managed code), such as access violations in Windows, to be handled by managed code.

If you want to compile an application in the .NET Framework 4 Beta 2 (or later) and maintain handling of corrupted state exceptions, you can apply this attribute to the method that handles the corrupted state exception. Alternatively, you can add the following setting to the application's configuration file:

legacyCorruptedStateExceptionsPolicy=true

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    System.Runtime.ExceptionServices..::.HandleProcessCorruptedStateExceptionsAttribute
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.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker