Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / ThreadAbortException.cs / 1305376 / ThreadAbortException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // //[....] /*============================================================================== ** ** Class: ThreadAbortException ** ** ** Purpose: An exception class which is thrown into a thread to cause it to ** abort. This is a special non-catchable exception and results in ** the thread's death. This is thrown by the VM only and can NOT be ** thrown by any user thread, and subclassing this is useless. ** ** =============================================================================*/ namespace System.Threading { using System; using System.Runtime.Serialization; using System.Runtime.CompilerServices; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public sealed class ThreadAbortException : SystemException { private ThreadAbortException() : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadAbort)) { SetErrorCode(__HResults.COR_E_THREADABORTED); } //required for serialization internal ThreadAbortException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Object ExceptionState { [System.Security.SecuritySafeCritical] // auto-generated get {return Thread.CurrentThread.AbortReason;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // //[....] /*============================================================================== ** ** Class: ThreadAbortException ** ** ** Purpose: An exception class which is thrown into a thread to cause it to ** abort. This is a special non-catchable exception and results in ** the thread's death. This is thrown by the VM only and can NOT be ** thrown by any user thread, and subclassing this is useless. ** ** =============================================================================*/ namespace System.Threading { using System; using System.Runtime.Serialization; using System.Runtime.CompilerServices; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public sealed class ThreadAbortException : SystemException { private ThreadAbortException() : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadAbort)) { SetErrorCode(__HResults.COR_E_THREADABORTED); } //required for serialization internal ThreadAbortException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Object ExceptionState { [System.Security.SecuritySafeCritical] // auto-generated get {return Thread.CurrentThread.AbortReason;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpoolingTask.cs
- ConfigurationElement.cs
- DiscardableAttribute.cs
- DigitalSignature.cs
- BufferedWebEventProvider.cs
- EventEntry.cs
- InternalConfigSettingsFactory.cs
- HttpVersion.cs
- DependencyObjectType.cs
- SqlCaseSimplifier.cs
- SessionState.cs
- MSG.cs
- xsdvalidator.cs
- CqlErrorHelper.cs
- ToolStripTemplateNode.cs
- DependentList.cs
- LifetimeServices.cs
- RoleGroupCollection.cs
- RoutedCommand.cs
- RegexStringValidator.cs
- Message.cs
- wgx_render.cs
- TrustLevelCollection.cs
- SettingsPropertyValueCollection.cs
- autovalidator.cs
- AppDomainAttributes.cs
- SqlFacetAttribute.cs
- VirtualizingPanel.cs
- InternalBufferOverflowException.cs
- BitmapFrameDecode.cs
- StaticFileHandler.cs
- MarkupExtensionParser.cs
- loginstatus.cs
- SvcMapFileLoader.cs
- InfoCardCryptoHelper.cs
- ContentElement.cs
- GeometryDrawing.cs
- ExecutedRoutedEventArgs.cs
- MouseGestureConverter.cs
- Cell.cs
- LightweightCodeGenerator.cs
- HostProtectionPermission.cs
- SymLanguageVendor.cs
- FixedSOMContainer.cs
- Encoder.cs
- WindowsFormsHostPropertyMap.cs
- SQLInt32Storage.cs
- Int32Animation.cs
- DynamicPropertyReader.cs
- EntityDataSourceConfigureObjectContext.cs
- RequestDescription.cs
- BitmapEffectDrawing.cs
- WindowClosedEventArgs.cs
- ConfigXmlCDataSection.cs
- CompilerError.cs
- ComplexTypeEmitter.cs
- DataGridViewRowsAddedEventArgs.cs
- NegotiateStream.cs
- MediaScriptCommandRoutedEventArgs.cs
- PhonemeEventArgs.cs
- SQLGuidStorage.cs
- CommandLineParser.cs
- DataGridLengthConverter.cs
- PowerStatus.cs
- CodeTypeDeclarationCollection.cs
- DBParameter.cs
- NameObjectCollectionBase.cs
- MatrixConverter.cs
- UshortList2.cs
- MenuItemStyleCollection.cs
- DbModificationCommandTree.cs
- ColorInterpolationModeValidation.cs
- DelegatingTypeDescriptionProvider.cs
- ComponentRenameEvent.cs
- VirtualPath.cs
- FactoryMaker.cs
- TagPrefixCollection.cs
- Rotation3DAnimation.cs
- TextContainerChangeEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- WindowsListViewItemCheckBox.cs
- PartialList.cs
- ListViewHitTestInfo.cs
- NativeWindow.cs
- ServiceDescription.cs
- DiffuseMaterial.cs
- MemoryStream.cs
- HiddenField.cs
- GraphicsContext.cs
- PersonalizationDictionary.cs
- BaseResourcesBuildProvider.cs
- SoapFormatter.cs
- AvTraceFormat.cs
- DesignerRegion.cs
- CompleteWizardStep.cs
- BinaryConverter.cs
- NativeObjectSecurity.cs
- DatatypeImplementation.cs
- XmlSchemaComplexContent.cs
- TextBox.cs