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
- ADRole.cs
- EventSinkActivityDesigner.cs
- StoryFragments.cs
- DataGridViewIntLinkedList.cs
- baseshape.cs
- DataList.cs
- Crypto.cs
- DataTablePropertyDescriptor.cs
- PositiveTimeSpanValidatorAttribute.cs
- FontStyles.cs
- MdiWindowListStrip.cs
- LinkLabel.cs
- SmtpLoginAuthenticationModule.cs
- ProfileSettingsCollection.cs
- SelectedDatesCollection.cs
- CompressionTransform.cs
- XmlAutoDetectWriter.cs
- TransactionWaitAsyncResult.cs
- ConfigViewGenerator.cs
- RowParagraph.cs
- SoapIgnoreAttribute.cs
- AutomationPropertyInfo.cs
- SqlBooleanMismatchVisitor.cs
- StatusBarAutomationPeer.cs
- HttpModuleCollection.cs
- ETagAttribute.cs
- TargetPerspective.cs
- XsdDataContractImporter.cs
- TableCellCollection.cs
- EventProviderBase.cs
- ConfigurationLocation.cs
- RouteUrlExpressionBuilder.cs
- SqlDataSourceView.cs
- ManipulationDeltaEventArgs.cs
- EpmTargetTree.cs
- ElementProxy.cs
- QilName.cs
- ReservationNotFoundException.cs
- TraceSection.cs
- InkPresenter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ObjectSpanRewriter.cs
- ProcessHostServerConfig.cs
- EventEntry.cs
- OutputCacheSettings.cs
- CrossContextChannel.cs
- RectConverter.cs
- RegistryConfigurationProvider.cs
- Graphics.cs
- Parser.cs
- InkCanvasInnerCanvas.cs
- TdsEnums.cs
- QilChoice.cs
- ProjectionPruner.cs
- LayoutEvent.cs
- FileDialog.cs
- WebDisplayNameAttribute.cs
- ToolStripItemCollection.cs
- CrossContextChannel.cs
- SystemIPGlobalStatistics.cs
- ConfigsHelper.cs
- MinMaxParagraphWidth.cs
- SQLGuid.cs
- MouseButtonEventArgs.cs
- TemplateField.cs
- ObjectAnimationBase.cs
- MobileTextWriter.cs
- FunctionQuery.cs
- ResourcePermissionBaseEntry.cs
- PlanCompilerUtil.cs
- WebPartZoneAutoFormat.cs
- FileDialogPermission.cs
- MultipartIdentifier.cs
- StorageEndPropertyMapping.cs
- HttpInputStream.cs
- StopStoryboard.cs
- AppDomain.cs
- ExpandCollapseProviderWrapper.cs
- SupportsEventValidationAttribute.cs
- DbDeleteCommandTree.cs
- KoreanCalendar.cs
- XmlAtomErrorReader.cs
- ThousandthOfEmRealPoints.cs
- SelectiveScrollingGrid.cs
- ScriptServiceAttribute.cs
- CheckBox.cs
- DataSourceGroupCollection.cs
- HttpHandlersSection.cs
- IdentifierCollection.cs
- HtmlEmptyTagControlBuilder.cs
- CellParagraph.cs
- SoapFormatExtensions.cs
- UpdateManifestForBrowserApplication.cs
- SessionState.cs
- ObjectReferenceStack.cs
- InputScopeManager.cs
- _CommandStream.cs
- XPathChildIterator.cs
- Events.cs
- TemplateBindingExpressionConverter.cs