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
- WebConfigurationManager.cs
- Vector3DConverter.cs
- PhonemeEventArgs.cs
- PropertyChangingEventArgs.cs
- ValueType.cs
- XmlElementAttribute.cs
- ApplicationInterop.cs
- QueryComponents.cs
- EdmSchemaError.cs
- SkinBuilder.cs
- ContextMenuAutomationPeer.cs
- ZoneLinkButton.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ArrangedElementCollection.cs
- InitializationEventAttribute.cs
- CoTaskMemHandle.cs
- InputReportEventArgs.cs
- InputBinder.cs
- RegexReplacement.cs
- LogManagementAsyncResult.cs
- Page.cs
- HostingEnvironmentSection.cs
- RequestTimeoutManager.cs
- OleDbReferenceCollection.cs
- DiscardableAttribute.cs
- XmlDataImplementation.cs
- StringValidator.cs
- RecordManager.cs
- DbConnectionPoolIdentity.cs
- XmlHelper.cs
- XmlDictionaryString.cs
- Button.cs
- Command.cs
- CachedBitmap.cs
- _FtpDataStream.cs
- MDIControlStrip.cs
- ValidatorCompatibilityHelper.cs
- WebPartEditorOkVerb.cs
- SessionStateContainer.cs
- DataGridViewCellParsingEventArgs.cs
- WebSysDisplayNameAttribute.cs
- TextLineBreak.cs
- FormViewAutoFormat.cs
- TextPointerBase.cs
- X509CertificateValidator.cs
- HttpResponseBase.cs
- StyleCollectionEditor.cs
- ConfigurationSettings.cs
- CompositeFontParser.cs
- AssemblyBuilder.cs
- WhereQueryOperator.cs
- CustomWebEventKey.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DependsOnAttribute.cs
- AppLevelCompilationSectionCache.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StyleSelector.cs
- ValueHandle.cs
- HtmlFormWrapper.cs
- Parser.cs
- Rect3D.cs
- XmlnsCompatibleWithAttribute.cs
- EndOfStreamException.cs
- DataGridViewHitTestInfo.cs
- HybridDictionary.cs
- Size.cs
- ErrorFormatterPage.cs
- PackageProperties.cs
- AvtEvent.cs
- DecimalAnimationBase.cs
- AdministrationHelpers.cs
- PropertyStore.cs
- StorageInfo.cs
- SourceSwitch.cs
- Overlapped.cs
- BinaryReader.cs
- HandlerFactoryCache.cs
- SchemaEntity.cs
- MarkedHighlightComponent.cs
- InProcStateClientManager.cs
- ComboBox.cs
- DurationConverter.cs
- Emitter.cs
- MetadataImporterQuotas.cs
- XmlDataSourceDesigner.cs
- DefaultShape.cs
- MetadataFile.cs
- WindowsToolbarItemAsMenuItem.cs
- SqlParameterCollection.cs
- SwitchLevelAttribute.cs
- RemoteHelper.cs
- PropertyInformation.cs
- ArrayListCollectionBase.cs
- Base64Encoding.cs
- XmlNodeComparer.cs
- Binding.cs
- TextBoxDesigner.cs
- Control.cs
- DocumentXmlWriter.cs
- Grant.cs