1 #if FEATURE_EXCEPTION_NOTIFICATIONS
4 // Copyright (c) Microsoft Corporation. All rights reserved.
7 /*=============================================================================
9 ** File: ExceptionNotification.cs
12 ** Purpose: Contains definitions for supporting Exception Notifications.
14 ** Created: 10/07/2008
16 ** <owner>[....]</owner>
18 =============================================================================*/
20 namespace System.Runtime.ExceptionServices {
22 using System.Runtime.ConstrainedExecution;
24 // Definition of the argument-type passed to the FirstChanceException event handler
25 public class FirstChanceExceptionEventArgs : EventArgs
28 public FirstChanceExceptionEventArgs(Exception exception)
30 m_Exception = exception;
33 // Returns the exception object pertaining to the first chance exception
34 public Exception Exception
36 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
37 get { return m_Exception; }
40 // Represents the FirstChance exception instance
41 private Exception m_Exception;
44 #endif // FEATURE_EXCEPTION_NOTIFICATIONS