HandleProcessCorruptedStateExceptionsAttribute Class


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

// <summary>

// .. this method can be used to handle and log  Exceptions that are not //handled by the CLR 

// </summary>

[HandleProcessCorruptedStateExceptions]

public static void HandleCorruptedState()

{    

// Write Exception Notification code here ,  can log or send mail to admin etc.

} 

Individual managed methods can override the defaults and catch these exceptions by applying the HandleProcessCorruptedStateExceptions attribute to the method.

System.Runtime.ExceptionServices namespace will provide this class.