Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / mscorlib / system / runtime / exceptionservices / exceptionnotification.cs
1 #if FEATURE_EXCEPTION_NOTIFICATIONS
2 // ==++==
3 // 
4 //   Copyright (c) Microsoft Corporation.  All rights reserved.
5 // 
6 // ==--==
7 /*=============================================================================
8 **
9 ** File: ExceptionNotification.cs
10 **
11 **
12 ** Purpose: Contains definitions for supporting Exception Notifications.
13 **
14 ** Created: 10/07/2008
15 ** 
16 ** <owner>[....]</owner>
17 ** 
18 =============================================================================*/
19
20 namespace System.Runtime.ExceptionServices {
21     using System;
22     using System.Runtime.ConstrainedExecution;
23     
24     // Definition of the argument-type passed to the FirstChanceException event handler
25     public class FirstChanceExceptionEventArgs : EventArgs
26     {
27         // Constructor
28         public FirstChanceExceptionEventArgs(Exception exception)
29         {
30             m_Exception = exception;
31         }
32
33         // Returns the exception object pertaining to the first chance exception
34         public Exception Exception
35         {
36             [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
37             get { return m_Exception; }
38         }
39
40         // Represents the FirstChance exception instance
41         private Exception m_Exception;
42     }
43 }
44 #endif // FEATURE_EXCEPTION_NOTIFICATIONS