Code:
/ DotNET / DotNET / 8.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
- SQLCharsStorage.cs
- RegisteredHiddenField.cs
- JsonWriterDelegator.cs
- DetailsViewRow.cs
- InkCanvasSelectionAdorner.cs
- AsyncContentLoadedEventArgs.cs
- DataGridViewAccessibleObject.cs
- _Events.cs
- CatalogPart.cs
- ObservableDictionary.cs
- LineServicesRun.cs
- ReceiveActivityDesignerTheme.cs
- ParameterDataSourceExpression.cs
- Stopwatch.cs
- SystemBrushes.cs
- TableItemPatternIdentifiers.cs
- XmlSchemaComplexType.cs
- UnhandledExceptionEventArgs.cs
- CustomLineCap.cs
- PasswordTextContainer.cs
- parserscommon.cs
- ArgumentsParser.cs
- ReceiveActivityDesigner.cs
- NGCPageContentSerializerAsync.cs
- AliasedSlot.cs
- CommandManager.cs
- TriggerActionCollection.cs
- AdapterUtil.cs
- QueryBranchOp.cs
- Validator.cs
- NetPipeSection.cs
- XmlSchemaSet.cs
- ValidatorCompatibilityHelper.cs
- WebControlAdapter.cs
- OpenTypeCommon.cs
- XmlAnyElementAttributes.cs
- ConnectionStringsExpressionBuilder.cs
- TickBar.cs
- RealizationDrawingContextWalker.cs
- ConfigurationPropertyCollection.cs
- SmiEventStream.cs
- TextEncodedRawTextWriter.cs
- RequiredFieldValidator.cs
- PersonalizationProviderHelper.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DrawingCollection.cs
- BaseValidator.cs
- MatrixTransform.cs
- WinEventHandler.cs
- Point3DCollectionValueSerializer.cs
- TextInfo.cs
- DataControlPagerLinkButton.cs
- ProxyHelper.cs
- MobileControlPersister.cs
- StringHandle.cs
- XPathNodeInfoAtom.cs
- HttpPostLocalhostServerProtocol.cs
- ExpressionCopier.cs
- RSACryptoServiceProvider.cs
- DBBindings.cs
- SamlDelegatingWriter.cs
- MessageBodyMemberAttribute.cs
- HttpListenerException.cs
- EpmContentDeSerializerBase.cs
- BooleanAnimationUsingKeyFrames.cs
- ClientSettingsStore.cs
- WindowInteractionStateTracker.cs
- ConfigurationSection.cs
- OptimizedTemplateContentHelper.cs
- UInt16Storage.cs
- BinaryFormatter.cs
- ModelTreeEnumerator.cs
- HandledEventArgs.cs
- ProxyGenerator.cs
- SmiEventStream.cs
- ThreadSafeList.cs
- BezierSegment.cs
- XamlClipboardData.cs
- TemplateEditingFrame.cs
- DataGridCellAutomationPeer.cs
- XmlFileEditor.cs
- XmlStringTable.cs
- ContractValidationHelper.cs
- _OverlappedAsyncResult.cs
- ContractSearchPattern.cs
- ComPlusDiagnosticTraceRecords.cs
- HelloOperation11AsyncResult.cs
- ContentDisposition.cs
- CompilerParameters.cs
- EmptyEnumerator.cs
- JournalEntryListConverter.cs
- DesignerForm.cs
- UserControlBuildProvider.cs
- InternalConfigEventArgs.cs
- DesignerTransactionCloseEvent.cs
- MethodBody.cs
- WebBrowserNavigatedEventHandler.cs
- PrivilegedConfigurationManager.cs
- Control.cs
- ComponentResourceKey.cs