Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencySource.cs
- VisualBrush.cs
- DataAccessException.cs
- XmlFormatExtensionPrefixAttribute.cs
- NotificationContext.cs
- TraceHandlerErrorFormatter.cs
- TypeKeyValue.cs
- DoubleAnimationUsingKeyFrames.cs
- RadioButtonPopupAdapter.cs
- AudioLevelUpdatedEventArgs.cs
- ThreadPool.cs
- DbDeleteCommandTree.cs
- ExitEventArgs.cs
- EnvelopedPkcs7.cs
- RulePatternOps.cs
- FixedDSBuilder.cs
- PresentationAppDomainManager.cs
- StyleCollection.cs
- PackageStore.cs
- FontUnit.cs
- CDSCollectionETWBCLProvider.cs
- ExceptionHandlers.cs
- SqlCommand.cs
- LoginUtil.cs
- _OverlappedAsyncResult.cs
- LabelLiteral.cs
- WebSysDescriptionAttribute.cs
- SessionPageStateSection.cs
- XmlSchemaSimpleTypeRestriction.cs
- ClientFormsAuthenticationMembershipProvider.cs
- XPathSelectionIterator.cs
- EntityDataSource.cs
- SystemIcmpV4Statistics.cs
- UICuesEvent.cs
- InputLangChangeRequestEvent.cs
- FragmentQueryProcessor.cs
- XmlChoiceIdentifierAttribute.cs
- BamlTreeNode.cs
- SchemaImporterExtensionElementCollection.cs
- XmlDocumentFragment.cs
- LocatorGroup.cs
- HTMLTagNameToTypeMapper.cs
- UnsafeNativeMethods.cs
- ParsedAttributeCollection.cs
- OdbcDataReader.cs
- DataBindingExpressionBuilder.cs
- DoubleAnimationClockResource.cs
- VerificationAttribute.cs
- WebServiceResponse.cs
- _SslSessionsCache.cs
- ValueConversionAttribute.cs
- WebResourceAttribute.cs
- PropertyRecord.cs
- ServiceElement.cs
- _UriTypeConverter.cs
- QuestionEventArgs.cs
- LinearGradientBrush.cs
- EventHandlersStore.cs
- DBParameter.cs
- EdmSchemaAttribute.cs
- Image.cs
- SwitchLevelAttribute.cs
- XmlSerializerFactory.cs
- NavigateUrlConverter.cs
- WSDualHttpBindingElement.cs
- _ListenerResponseStream.cs
- AccessControlList.cs
- DesigntimeLicenseContext.cs
- RelationshipEndMember.cs
- SymLanguageType.cs
- SystemFonts.cs
- SoapFault.cs
- XmlHelper.cs
- XmlNotation.cs
- ListViewInsertEventArgs.cs
- CurrentTimeZone.cs
- DefaultSerializationProviderAttribute.cs
- ByteStream.cs
- DefaultValueAttribute.cs
- XmlSerializerFactory.cs
- UIElement.cs
- EntityEntry.cs
- OleDbMetaDataFactory.cs
- DataSourceControlBuilder.cs
- _ScatterGatherBuffers.cs
- CookielessHelper.cs
- HttpResponse.cs
- TraceListeners.cs
- HostedHttpTransportManager.cs
- WebBrowser.cs
- StorageEntityContainerMapping.cs
- XmlAttribute.cs
- ViewStateModeByIdAttribute.cs
- XmlCharCheckingWriter.cs
- WebPartVerbsEventArgs.cs
- UInt64Storage.cs
- TemplateKeyConverter.cs
- CurrentTimeZone.cs
- TargetException.cs
- NonParentingControl.cs