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
- ExpressionBindingCollection.cs
- ForEachAction.cs
- TabPanel.cs
- AdCreatedEventArgs.cs
- DataServiceRequestException.cs
- InfiniteTimeSpanConverter.cs
- HttpSocketManager.cs
- DrawingContextWalker.cs
- EventSourceCreationData.cs
- XmlDataSource.cs
- TableProvider.cs
- NavigationExpr.cs
- HtmlInputReset.cs
- CompModSwitches.cs
- XPathEmptyIterator.cs
- StylusPointProperty.cs
- XPathEmptyIterator.cs
- AxImporter.cs
- BuilderPropertyEntry.cs
- LayoutEngine.cs
- InputLangChangeRequestEvent.cs
- RankException.cs
- SQLMoneyStorage.cs
- ServicePerformanceCounters.cs
- SplineKeyFrames.cs
- DefaultConfirmation.cs
- ExpressionBuilder.cs
- __ConsoleStream.cs
- ZipIOModeEnforcingStream.cs
- InstanceNormalEvent.cs
- Int64Animation.cs
- PersonalizationState.cs
- EnumMember.cs
- ImageListUtils.cs
- TypedRowGenerator.cs
- DynamicPropertyReader.cs
- ToolStripItem.cs
- odbcmetadatafactory.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlNodeComparer.cs
- BindToObject.cs
- CustomWebEventKey.cs
- TagPrefixAttribute.cs
- DesignTimeXamlWriter.cs
- EntityKeyElement.cs
- UIntPtr.cs
- PointLight.cs
- CssClassPropertyAttribute.cs
- HtmlInputReset.cs
- HttpCapabilitiesBase.cs
- ProjectionCamera.cs
- FixedFindEngine.cs
- SupportsEventValidationAttribute.cs
- DataGridDesigner.cs
- Application.cs
- ConfigurationLockCollection.cs
- DataGridRelationshipRow.cs
- DataObjectSettingDataEventArgs.cs
- XmlNamespaceMappingCollection.cs
- DataGridCaption.cs
- HttpCacheVaryByContentEncodings.cs
- XmlNamespaceMapping.cs
- updateconfighost.cs
- KoreanLunisolarCalendar.cs
- LineServicesRun.cs
- SelectionPatternIdentifiers.cs
- SafeCryptoHandles.cs
- GatewayDefinition.cs
- CatalogPart.cs
- DataRelationCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- VisualTarget.cs
- KeysConverter.cs
- SQLGuidStorage.cs
- CryptoHandle.cs
- VirtualPathProvider.cs
- AutoResetEvent.cs
- ImageAutomationPeer.cs
- WindowPatternIdentifiers.cs
- CompositeFontInfo.cs
- diagnosticsswitches.cs
- TextDecorationCollection.cs
- TemplatePagerField.cs
- PropVariant.cs
- WindowsSlider.cs
- XmlSerializer.cs
- Listbox.cs
- InputLanguage.cs
- WebPartZone.cs
- JsonQueryStringConverter.cs
- _WinHttpWebProxyDataBuilder.cs
- NavigationProgressEventArgs.cs
- Substitution.cs
- mda.cs
- SortAction.cs
- CaseStatementSlot.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- SchemaNotation.cs
- ParameterCollection.cs
- OdbcConnectionFactory.cs