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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationBuildProvider.cs
- Internal.cs
- EncryptedKeyIdentifierClause.cs
- MimeObjectFactory.cs
- ValidationError.cs
- COM2ColorConverter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ProfileInfo.cs
- Directory.cs
- DocumentDesigner.cs
- TableAutomationPeer.cs
- XmlCodeExporter.cs
- HttpHandlersSection.cs
- ZipIORawDataFileBlock.cs
- WebAdminConfigurationHelper.cs
- designeractionlistschangedeventargs.cs
- _LocalDataStoreMgr.cs
- SoapCodeExporter.cs
- XamlRtfConverter.cs
- NativeMethods.cs
- AxHost.cs
- ControlCollection.cs
- Debug.cs
- ScriptBehaviorDescriptor.cs
- TextProviderWrapper.cs
- SafeFindHandle.cs
- ThicknessKeyFrameCollection.cs
- FrameworkName.cs
- ButtonField.cs
- Dictionary.cs
- Storyboard.cs
- NativeWrapper.cs
- DataBindingHandlerAttribute.cs
- HyperLinkStyle.cs
- UnsafeNativeMethods.cs
- MultiplexingDispatchMessageFormatter.cs
- InputDevice.cs
- OracleRowUpdatedEventArgs.cs
- OracleBinary.cs
- XsltContext.cs
- ConcurrentQueue.cs
- CustomErrorsSectionWrapper.cs
- BlobPersonalizationState.cs
- Timer.cs
- ClientFactory.cs
- TreeNodeSelectionProcessor.cs
- StatusBarItemAutomationPeer.cs
- AutomationIdentifierGuids.cs
- DbDataReader.cs
- LicenseContext.cs
- WebAdminConfigurationHelper.cs
- RegexWriter.cs
- StateDesigner.Helpers.cs
- PeerName.cs
- BrushValueSerializer.cs
- DoubleCollectionConverter.cs
- OracleLob.cs
- ProcessHostMapPath.cs
- StringKeyFrameCollection.cs
- IdleTimeoutMonitor.cs
- PrincipalPermission.cs
- RegexInterpreter.cs
- ParameterCollection.cs
- Exceptions.cs
- EditingMode.cs
- XmlDictionaryString.cs
- ImageSourceValueSerializer.cs
- UserInitiatedNavigationPermission.cs
- PageAction.cs
- BezierSegment.cs
- ValueTypeFixupInfo.cs
- CacheEntry.cs
- MetadataCache.cs
- WorkflowView.cs
- PauseStoryboard.cs
- RectangleGeometry.cs
- UnicodeEncoding.cs
- ParameterElement.cs
- SystemColors.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- AssociatedControlConverter.cs
- ObjectDataSourceStatusEventArgs.cs
- FontResourceCache.cs
- MediaElement.cs
- sqlser.cs
- OnOperation.cs
- ProcessMessagesAsyncResult.cs
- DateTimeConstantAttribute.cs
- SmtpReplyReaderFactory.cs
- TextSelectionProcessor.cs
- ColumnResizeUndoUnit.cs
- TextChangedEventArgs.cs
- WindowShowOrOpenTracker.cs
- HScrollProperties.cs
- VisualTransition.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ListBox.cs
- Byte.cs
- CallSiteBinder.cs
- HttpServerVarsCollection.cs