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
- NotFiniteNumberException.cs
- XmlParserContext.cs
- LinqDataSourceInsertEventArgs.cs
- ActiveXSite.cs
- AdornerHitTestResult.cs
- XmlWrappingReader.cs
- PageSettings.cs
- XPathMultyIterator.cs
- CharacterMetricsDictionary.cs
- Comparer.cs
- FileStream.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CustomAttributeFormatException.cs
- DataBindingValueUIHandler.cs
- VariableQuery.cs
- StatusBarDesigner.cs
- DbReferenceCollection.cs
- StaticSiteMapProvider.cs
- Decoder.cs
- prompt.cs
- DesignerLabelAdapter.cs
- DataGridColumn.cs
- DbCommandTree.cs
- PngBitmapEncoder.cs
- LogPolicy.cs
- XmlSchemaAny.cs
- TraceContextEventArgs.cs
- SpellerHighlightLayer.cs
- VisualBasicValue.cs
- MatrixAnimationBase.cs
- SlipBehavior.cs
- CryptoKeySecurity.cs
- DetailsViewUpdateEventArgs.cs
- DataGridColumnCollection.cs
- PropertyItemInternal.cs
- PackageRelationshipSelector.cs
- SqlProfileProvider.cs
- UserPreferenceChangingEventArgs.cs
- SerializationStore.cs
- Qualifier.cs
- ListViewItem.cs
- ListSurrogate.cs
- WindowsGraphicsWrapper.cs
- EventPropertyMap.cs
- ProfileGroupSettingsCollection.cs
- ChannelFactoryBase.cs
- InstanceCreationEditor.cs
- WinEventWrap.cs
- RecognizerBase.cs
- TransformPattern.cs
- FontDifferentiator.cs
- PolygonHotSpot.cs
- IconBitmapDecoder.cs
- ToolStripItemTextRenderEventArgs.cs
- RegexInterpreter.cs
- HebrewNumber.cs
- IgnorePropertiesAttribute.cs
- SubtreeProcessor.cs
- WebPartRestoreVerb.cs
- PartialCachingControl.cs
- TreeNodeClickEventArgs.cs
- ObjectToken.cs
- ApplicationCommands.cs
- Highlights.cs
- UnsafeNativeMethods.cs
- HebrewNumber.cs
- BasePropertyDescriptor.cs
- Application.cs
- WindowsContainer.cs
- DBSqlParserColumn.cs
- ByteStreamGeometryContext.cs
- WebMessageFormatHelper.cs
- WebHeaderCollection.cs
- DBConcurrencyException.cs
- RequiredArgumentAttribute.cs
- BinaryReader.cs
- InheritanceContextChangedEventManager.cs
- OdbcTransaction.cs
- MasterPageBuildProvider.cs
- WsatTransactionFormatter.cs
- SolidColorBrush.cs
- RawStylusInputReport.cs
- SerializationAttributes.cs
- LocalizedNameDescriptionPair.cs
- BindStream.cs
- BindingManagerDataErrorEventArgs.cs
- MiniMapControl.xaml.cs
- HtmlAnchor.cs
- FamilyMap.cs
- TdsRecordBufferSetter.cs
- SystemIPGlobalProperties.cs
- DesignerSerializerAttribute.cs
- DateTimeConverter.cs
- XmlWriterSettings.cs
- AsyncDataRequest.cs
- UriScheme.cs
- TraceSource.cs
- KeyGesture.cs
- DataRelation.cs
- DateTimeConverter2.cs