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
- HTMLTextWriter.cs
- WarningException.cs
- UntypedNullExpression.cs
- SemanticValue.cs
- MetadataArtifactLoaderCompositeResource.cs
- ReadOnlyDataSource.cs
- ExpressionEvaluator.cs
- WindowsMenu.cs
- Pen.cs
- PageAsyncTask.cs
- QueueException.cs
- RegistrySecurity.cs
- CorrelationManager.cs
- TranslateTransform3D.cs
- PartialCachingControl.cs
- CapabilitiesAssignment.cs
- AppLevelCompilationSectionCache.cs
- LineGeometry.cs
- GPPOINTF.cs
- MultilineStringConverter.cs
- PeerTransportCredentialType.cs
- PageEventArgs.cs
- DataTransferEventArgs.cs
- BooleanExpr.cs
- Stack.cs
- PermissionSet.cs
- HandlerBase.cs
- followingquery.cs
- MapPathBasedVirtualPathProvider.cs
- DataGridViewSelectedRowCollection.cs
- NativeWindow.cs
- Label.cs
- MLangCodePageEncoding.cs
- Converter.cs
- FormatStringEditor.cs
- SoapAttributeAttribute.cs
- ImageAttributes.cs
- ErrorStyle.cs
- QilStrConcatenator.cs
- WsdlImporter.cs
- DispatchChannelSink.cs
- InstanceCreationEditor.cs
- ReadContentAsBinaryHelper.cs
- DrawingDrawingContext.cs
- BlockCollection.cs
- InputLanguageSource.cs
- ArrayElementGridEntry.cs
- TextEditorSelection.cs
- VerificationAttribute.cs
- DataGridItemCollection.cs
- XmlIlGenerator.cs
- InstancePersistence.cs
- ButtonChrome.cs
- XmlTextReaderImplHelpers.cs
- ObjectCacheHost.cs
- EntityCollection.cs
- dbenumerator.cs
- FtpRequestCacheValidator.cs
- HwndSubclass.cs
- HMACSHA1.cs
- ArcSegment.cs
- SecurityTokenParameters.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CodeNamespaceImport.cs
- Process.cs
- FontUnit.cs
- ObjectStorage.cs
- NamespaceExpr.cs
- DispatchChannelSink.cs
- GenericTypeParameterBuilder.cs
- CaseInsensitiveComparer.cs
- ConstraintCollection.cs
- SoapReflectionImporter.cs
- InvokeMethodActivityDesigner.cs
- RangeValueProviderWrapper.cs
- DefaultSection.cs
- FullTextLine.cs
- TransmissionStrategy.cs
- ParentControlDesigner.cs
- UserInitiatedNavigationPermission.cs
- KeyedHashAlgorithm.cs
- XmlReader.cs
- Visitor.cs
- TreeViewItemAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- DelegateSerializationHolder.cs
- Accessible.cs
- MachineKeySection.cs
- PartialCachingControl.cs
- Point3DValueSerializer.cs
- ArgumentsParser.cs
- MatrixKeyFrameCollection.cs
- XmlDocument.cs
- Line.cs
- PropertyPathWorker.cs
- TextEndOfParagraph.cs
- ShaderRenderModeValidation.cs
- AsyncOperationManager.cs
- LockedActivityGlyph.cs
- NavigationWindow.cs