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
- PlaceHolder.cs
- DynamicMethod.cs
- CodeCatchClauseCollection.cs
- HostExecutionContextManager.cs
- Int32Animation.cs
- VScrollBar.cs
- X509SecurityTokenAuthenticator.cs
- TreeNodeBindingDepthConverter.cs
- IdentityHolder.cs
- ViewService.cs
- HttpTransportElement.cs
- StorageMappingItemCollection.cs
- PropertyIDSet.cs
- WindowsEditBoxRange.cs
- SafePEFileHandle.cs
- LoginCancelEventArgs.cs
- CompiledELinqQueryState.cs
- Script.cs
- Identity.cs
- Span.cs
- Relationship.cs
- SchemaCollectionPreprocessor.cs
- LifetimeServices.cs
- KerberosReceiverSecurityToken.cs
- BorderGapMaskConverter.cs
- OciLobLocator.cs
- BaseConfigurationRecord.cs
- RegisteredExpandoAttribute.cs
- BaseUriHelper.cs
- XmlSerializationGeneratedCode.cs
- PictureBox.cs
- WebRequestModuleElement.cs
- ControlAdapter.cs
- BaseTemplateParser.cs
- CultureInfo.cs
- IndexedDataBuffer.cs
- ResXBuildProvider.cs
- CodeIdentifier.cs
- CollectionsUtil.cs
- DataGridHeaderBorder.cs
- XmlSchemaSimpleTypeList.cs
- RectAnimationUsingKeyFrames.cs
- ToolStripGrip.cs
- RouteItem.cs
- TextEditorContextMenu.cs
- LogReserveAndAppendState.cs
- KeyTime.cs
- AsynchronousChannelMergeEnumerator.cs
- PageAsyncTask.cs
- VersionUtil.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ResourceAssociationSetEnd.cs
- GradientStopCollection.cs
- FileDialogCustomPlacesCollection.cs
- SortDescriptionCollection.cs
- List.cs
- LocalizationComments.cs
- GeneralTransform.cs
- CorePropertiesFilter.cs
- BinaryCommonClasses.cs
- Transform3D.cs
- PtsHelper.cs
- SBCSCodePageEncoding.cs
- BitmapVisualManager.cs
- AmbientEnvironment.cs
- IsolatedStorageException.cs
- WindowsAuthenticationModule.cs
- AuthenticateEventArgs.cs
- DataGridState.cs
- ThicknessAnimationUsingKeyFrames.cs
- ServiceParser.cs
- KeyEventArgs.cs
- ProtectedConfigurationProviderCollection.cs
- ListItem.cs
- CatalogZone.cs
- BasePattern.cs
- DataDocumentXPathNavigator.cs
- CategoryGridEntry.cs
- CompositeCollection.cs
- AffineTransform3D.cs
- XmlSerializer.cs
- GridViewRowEventArgs.cs
- InstalledFontCollection.cs
- VisualState.cs
- Perspective.cs
- EmptyStringExpandableObjectConverter.cs
- SoapReflectionImporter.cs
- PropertyRef.cs
- Cursors.cs
- AlphabeticalEnumConverter.cs
- ModifierKeysConverter.cs
- TextDpi.cs
- ListViewItem.cs
- InkCanvasInnerCanvas.cs
- TransportConfigurationTypeElement.cs
- DbProviderFactory.cs
- ThicknessKeyFrameCollection.cs
- DialogResultConverter.cs
- ItemDragEvent.cs
- XamlTreeBuilderBamlRecordWriter.cs