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
- FieldToken.cs
- OleDbDataReader.cs
- QueryStringHandler.cs
- WebHeaderCollection.cs
- RootProfilePropertySettingsCollection.cs
- DropDownButton.cs
- HttpApplication.cs
- XslCompiledTransform.cs
- IteratorFilter.cs
- NonSerializedAttribute.cs
- DoubleKeyFrameCollection.cs
- CanonicalXml.cs
- RowUpdatedEventArgs.cs
- GiveFeedbackEvent.cs
- DataGridViewTextBoxColumn.cs
- PersonalizationProviderHelper.cs
- DurableInstancingOptions.cs
- SqlExpressionNullability.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SHA256CryptoServiceProvider.cs
- BamlTreeNode.cs
- UnionCodeGroup.cs
- HttpModuleCollection.cs
- PrimitiveSchema.cs
- SpecialFolderEnumConverter.cs
- XmlQueryRuntime.cs
- TextEndOfParagraph.cs
- CryptoKeySecurity.cs
- HandlerBase.cs
- StandardCommands.cs
- Quaternion.cs
- IgnoreSectionHandler.cs
- ArraySortHelper.cs
- GridToolTip.cs
- xml.cs
- FontResourceCache.cs
- DispatcherExceptionEventArgs.cs
- _TLSstream.cs
- ProcessProtocolHandler.cs
- HijriCalendar.cs
- EllipticalNodeOperations.cs
- CustomAssemblyResolver.cs
- EntityDataSourceMemberPath.cs
- PropertyGridCommands.cs
- JulianCalendar.cs
- Accessible.cs
- SHA384Managed.cs
- DataGridHeaderBorder.cs
- CommandBindingCollection.cs
- PenThread.cs
- TrailingSpaceComparer.cs
- ViewCellRelation.cs
- ObjectToIdCache.cs
- BamlLocalizableResourceKey.cs
- RenderDataDrawingContext.cs
- FormViewDeleteEventArgs.cs
- PropertyChangedEventArgs.cs
- SetStateEventArgs.cs
- AuthorizationRuleCollection.cs
- AspProxy.cs
- TimeSpanConverter.cs
- PageAction.cs
- SystemIPv6InterfaceProperties.cs
- ProgramNode.cs
- Compress.cs
- XXXOnTypeBuilderInstantiation.cs
- SoapAttributeOverrides.cs
- BitmapEffectGeneralTransform.cs
- ZipFileInfo.cs
- EntityContainerEntitySet.cs
- AnonymousIdentificationModule.cs
- TreeViewDesigner.cs
- Operators.cs
- QuaternionAnimation.cs
- TextLineResult.cs
- CategoryEditor.cs
- _SslSessionsCache.cs
- TlsnegoTokenProvider.cs
- WeakKeyDictionary.cs
- UIElementParaClient.cs
- CommonProperties.cs
- FileEnumerator.cs
- unsafenativemethodsother.cs
- MetadataArtifactLoaderFile.cs
- CodeNamespaceCollection.cs
- PageTheme.cs
- Run.cs
- HandledEventArgs.cs
- PropertyInfoSet.cs
- PackUriHelper.cs
- OutArgumentConverter.cs
- Transform.cs
- XmlAttributeOverrides.cs
- IEnumerable.cs
- CompilationSection.cs
- QuotaExceededException.cs
- MailMessage.cs
- FontStretchConverter.cs
- HiddenFieldPageStatePersister.cs
- WebServiceHandlerFactory.cs