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
- EventMappingSettingsCollection.cs
- FormViewDeletedEventArgs.cs
- SettingsAttributeDictionary.cs
- DropShadowBitmapEffect.cs
- ListChangedEventArgs.cs
- Crc32.cs
- ToolStripDropDownClosingEventArgs.cs
- ColumnResizeUndoUnit.cs
- TableLayoutStyle.cs
- TextRangeAdaptor.cs
- followingsibling.cs
- ChannelTraceRecord.cs
- DrawingBrush.cs
- Axis.cs
- PersonalizationProviderCollection.cs
- DrawingContextWalker.cs
- PaginationProgressEventArgs.cs
- SchemeSettingElementCollection.cs
- ExecutionEngineException.cs
- Handle.cs
- XmlCollation.cs
- HtmlControl.cs
- ComponentManagerBroker.cs
- ListViewDeletedEventArgs.cs
- AttributeSetAction.cs
- WindowsToolbar.cs
- PathGeometry.cs
- PageSettings.cs
- ConnectionManager.cs
- AutomationPatternInfo.cs
- SuppressMergeCheckAttribute.cs
- SoapElementAttribute.cs
- ObfuscationAttribute.cs
- XPathAxisIterator.cs
- SizeAnimationBase.cs
- MembershipPasswordException.cs
- iisPickupDirectory.cs
- TemplateManager.cs
- StandardToolWindows.cs
- UnsafeNativeMethods.cs
- DropShadowBitmapEffect.cs
- StandardOleMarshalObject.cs
- DataPagerField.cs
- TCEAdapterGenerator.cs
- WebPartVerbCollection.cs
- PasswordTextContainer.cs
- CachedBitmap.cs
- XmlWrappingWriter.cs
- ClientFormsIdentity.cs
- UxThemeWrapper.cs
- ObjectItemNoOpAssemblyLoader.cs
- ListBindingHelper.cs
- ValidatingReaderNodeData.cs
- MenuCommands.cs
- DependentList.cs
- PeerName.cs
- InheritanceAttribute.cs
- ResourceDescriptionAttribute.cs
- Columns.cs
- BaseResourcesBuildProvider.cs
- ConfigUtil.cs
- HandleInitializationContext.cs
- RegisteredScript.cs
- SoapConverter.cs
- Event.cs
- RelationshipConverter.cs
- DesignTimeHTMLTextWriter.cs
- VisualTreeHelper.cs
- StringUtil.cs
- TransactionException.cs
- AnnotationResource.cs
- ServerIdentity.cs
- WorkflowDesigner.cs
- ErrorHandlerModule.cs
- Faults.cs
- MimeObjectFactory.cs
- ProjectionCamera.cs
- WmlMobileTextWriter.cs
- SqlCacheDependency.cs
- AssemblyAttributes.cs
- CuspData.cs
- ButtonStandardAdapter.cs
- ApplicationManager.cs
- EntitySetRetriever.cs
- SqlWriter.cs
- BrowserDefinitionCollection.cs
- CqlIdentifiers.cs
- FileReservationCollection.cs
- PhysicalFontFamily.cs
- CalendarDataBindingHandler.cs
- KernelTypeValidation.cs
- UIAgentAsyncEndRequest.cs
- SafePEFileHandle.cs
- UnsafeNativeMethodsCLR.cs
- DataSetFieldSchema.cs
- SettingsProviderCollection.cs
- QueryTask.cs
- EtwTrace.cs
- SQLBinaryStorage.cs
- DesignTimeDataBinding.cs