ExceptionNotification.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / ExceptionServices / ExceptionNotification.cs / 1305376 / ExceptionNotification.cs

                            #if FEATURE_EXCEPTION_NOTIFICATIONS 
// ==++==
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// ==--==
/*============================================================================== 
** 
** File: ExceptionNotification.cs
** 
**
** Purpose: Contains definitions for supporting Exception Notifications.
**
** Created: 10/07/2008 
**
** [....] 
** 
=============================================================================*/
 
namespace System.Runtime.ExceptionServices {
    using System;
    using System.Runtime.ConstrainedExecution;
 
    // Definition of the argument-type passed to the FirstChanceException event handler
    public class FirstChanceExceptionEventArgs : EventArgs 
    { 
        // Constructor
        public FirstChanceExceptionEventArgs(Exception exception) 
        {
            m_Exception = exception;
        }
 
        // Returns the exception object pertaining to the first chance exception
        public Exception Exception 
        { 
            [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
            get { return m_Exception; } 
        }

        // Represents the FirstChance exception instance
        private Exception m_Exception; 
    }
} 
#endif // FEATURE_EXCEPTION_NOTIFICATIONS 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
#if FEATURE_EXCEPTION_NOTIFICATIONS 
// ==++==
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// ==--==
/*============================================================================== 
** 
** File: ExceptionNotification.cs
** 
**
** Purpose: Contains definitions for supporting Exception Notifications.
**
** Created: 10/07/2008 
**
** [....] 
** 
=============================================================================*/
 
namespace System.Runtime.ExceptionServices {
    using System;
    using System.Runtime.ConstrainedExecution;
 
    // Definition of the argument-type passed to the FirstChanceException event handler
    public class FirstChanceExceptionEventArgs : EventArgs 
    { 
        // Constructor
        public FirstChanceExceptionEventArgs(Exception exception) 
        {
            m_Exception = exception;
        }
 
        // Returns the exception object pertaining to the first chance exception
        public Exception Exception 
        { 
            [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
            get { return m_Exception; } 
        }

        // Represents the FirstChance exception instance
        private Exception m_Exception; 
    }
} 
#endif // FEATURE_EXCEPTION_NOTIFICATIONS 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK