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
- BreakSafeBase.cs
- DocumentViewerHelper.cs
- ModelItemCollectionImpl.cs
- XDRSchema.cs
- CodeAttributeArgumentCollection.cs
- OneOf.cs
- CompiledIdentityConstraint.cs
- AutomationIdentifierGuids.cs
- HttpCapabilitiesBase.cs
- CacheMode.cs
- IsolatedStorageException.cs
- StandardToolWindows.cs
- DataGridTable.cs
- XDRSchema.cs
- Base64Encoding.cs
- ListViewDeleteEventArgs.cs
- MtomMessageEncodingElement.cs
- FormView.cs
- ByteAnimationUsingKeyFrames.cs
- ContainerSelectorActiveEvent.cs
- GenericWebPart.cs
- InkPresenterAutomationPeer.cs
- DataBindingCollection.cs
- RenderDataDrawingContext.cs
- DataContext.cs
- ConfigDefinitionUpdates.cs
- FormsAuthenticationEventArgs.cs
- DoubleCollectionValueSerializer.cs
- ContentDisposition.cs
- NegotiateStream.cs
- ProfilePropertyMetadata.cs
- Message.cs
- SecurityCriticalDataForSet.cs
- DockProviderWrapper.cs
- CodePropertyReferenceExpression.cs
- BrowserTree.cs
- IERequestCache.cs
- SyntaxCheck.cs
- AvTraceDetails.cs
- AsymmetricSignatureFormatter.cs
- BinaryMessageFormatter.cs
- FocusManager.cs
- XAMLParseException.cs
- EdmConstants.cs
- FileUtil.cs
- DbMetaDataColumnNames.cs
- DocumentViewer.cs
- DataGridLengthConverter.cs
- ReadOnlyDictionary.cs
- SymbolTable.cs
- TextBoxAutomationPeer.cs
- SerialPort.cs
- EnumerableCollectionView.cs
- DataColumn.cs
- ToolStripContainer.cs
- LifetimeServices.cs
- FixedSOMContainer.cs
- Style.cs
- ChildDocumentBlock.cs
- CellParagraph.cs
- DataServiceRequestOfT.cs
- TextEditorThreadLocalStore.cs
- SecUtil.cs
- TokenizerHelper.cs
- Internal.cs
- PointHitTestParameters.cs
- SingleObjectCollection.cs
- EFDataModelProvider.cs
- ChannelManagerBase.cs
- BinaryUtilClasses.cs
- AsyncCallback.cs
- SecurityResources.cs
- GZipDecoder.cs
- RadioButton.cs
- Canvas.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BitConverter.cs
- TextBoxView.cs
- HyperLinkColumn.cs
- CodeSubDirectory.cs
- ProviderConnectionPointCollection.cs
- MultiDataTrigger.cs
- HtmlTable.cs
- IndexExpression.cs
- SamlDoNotCacheCondition.cs
- CapiSymmetricAlgorithm.cs
- RemotingAttributes.cs
- SystemTcpConnection.cs
- SchemaSetCompiler.cs
- CacheAxisQuery.cs
- SafeNativeMethods.cs
- BitmapScalingModeValidation.cs
- Rectangle.cs
- DataControlField.cs
- _SSPISessionCache.cs
- XhtmlConformanceSection.cs
- ToolbarAUtomationPeer.cs
- GridViewColumn.cs
- _BaseOverlappedAsyncResult.cs
- Camera.cs