Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Threading / ThreadAbortException.cs / 1 / 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 { 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 { 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
- ProviderSettings.cs
- List.cs
- CalendarDay.cs
- TdsEnums.cs
- TypeUnloadedException.cs
- MarkupExtensionParser.cs
- X509Extension.cs
- OleDbReferenceCollection.cs
- BindingElementCollection.cs
- URLMembershipCondition.cs
- DataGridViewRowConverter.cs
- ReservationCollection.cs
- RenderContext.cs
- ProxyWebPart.cs
- NativeMethods.cs
- XmlWellformedWriterHelpers.cs
- AppDomainProtocolHandler.cs
- UrlPath.cs
- SapiAttributeParser.cs
- FileResponseElement.cs
- Renderer.cs
- PageMediaSize.cs
- SubstitutionList.cs
- XmlTextReaderImplHelpers.cs
- ControlBuilder.cs
- DataGridViewCellParsingEventArgs.cs
- ObjectSecurityT.cs
- sqlstateclientmanager.cs
- WriteTimeStream.cs
- SessionEndedEventArgs.cs
- WebPartTracker.cs
- Int64Animation.cs
- InputScopeManager.cs
- ExceptionCollection.cs
- PermissionSetTriple.cs
- TcpServerChannel.cs
- TemplateBindingExtensionConverter.cs
- NegotiateStream.cs
- NotSupportedException.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- XPathSelectionIterator.cs
- XmlSchemaAttribute.cs
- ListenerAdaptersInstallComponent.cs
- RandomNumberGenerator.cs
- SoapCodeExporter.cs
- PathNode.cs
- newitemfactory.cs
- SrgsElement.cs
- WindowsRegion.cs
- AndMessageFilter.cs
- StretchValidation.cs
- WebBrowserProgressChangedEventHandler.cs
- WindowExtensionMethods.cs
- LineGeometry.cs
- DependencyObjectCodeDomSerializer.cs
- WebPartDisplayModeCollection.cs
- ReaderOutput.cs
- ClientOptions.cs
- IndicFontClient.cs
- ISFTagAndGuidCache.cs
- Size.cs
- HMACSHA256.cs
- UnionCodeGroup.cs
- XmlCharCheckingWriter.cs
- Listbox.cs
- TextDecorationUnitValidation.cs
- InputLangChangeRequestEvent.cs
- ImageConverter.cs
- KeyInfo.cs
- RewritingSimplifier.cs
- TagPrefixAttribute.cs
- DocumentOrderQuery.cs
- SerializationEventsCache.cs
- HybridDictionary.cs
- EDesignUtil.cs
- DataGridViewRowPostPaintEventArgs.cs
- ResourcesGenerator.cs
- Label.cs
- Stack.cs
- JsonFormatMapping.cs
- AgileSafeNativeMemoryHandle.cs
- httpstaticobjectscollection.cs
- WSSecureConversationDec2005.cs
- BitmapScalingModeValidation.cs
- VirtualizedItemPattern.cs
- WS2007HttpBindingCollectionElement.cs
- StringCollection.cs
- HtmlToClrEventProxy.cs
- ScaleTransform3D.cs
- Soap.cs
- DummyDataSource.cs
- ObjectCache.cs
- LineUtil.cs
- HttpCookiesSection.cs
- ScrollChangedEventArgs.cs
- X509Utils.cs
- NavigationHelper.cs
- InternalResources.cs
- TrackingMemoryStream.cs
- GroupByExpressionRewriter.cs