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
- SafeRegistryHandle.cs
- BooleanConverter.cs
- HtmlShimManager.cs
- ClientSettingsStore.cs
- ExecutionContext.cs
- TypeResolver.cs
- DataServiceException.cs
- CodeIdentifiers.cs
- RootNamespaceAttribute.cs
- VisualStyleElement.cs
- ReadOnlyMetadataCollection.cs
- FileDialog.cs
- XmlUrlResolver.cs
- XmlSchemaComplexType.cs
- ElementFactory.cs
- BmpBitmapEncoder.cs
- BindingValueChangedEventArgs.cs
- FontStyles.cs
- ComponentSerializationService.cs
- PipeStream.cs
- JsonReader.cs
- BaseAddressPrefixFilterElementCollection.cs
- XsdBuilder.cs
- StringUtil.cs
- HttpCookiesSection.cs
- CallbackCorrelationInitializer.cs
- Label.cs
- DPCustomTypeDescriptor.cs
- WebResponse.cs
- RegexMatchCollection.cs
- SecurityCriticalDataForSet.cs
- NameValueCollection.cs
- StringWriter.cs
- PeerToPeerException.cs
- ReferentialConstraint.cs
- DataGridViewTextBoxColumn.cs
- TypeDependencyAttribute.cs
- XmlSchemaNotation.cs
- TreeView.cs
- ZipIOCentralDirectoryFileHeader.cs
- HtmlInputRadioButton.cs
- AvTraceFormat.cs
- ScriptRegistrationManager.cs
- TerminatorSinks.cs
- XmlTextWriter.cs
- ZipArchive.cs
- PersonalizableTypeEntry.cs
- MenuItemCollection.cs
- CellPartitioner.cs
- EntityType.cs
- WebColorConverter.cs
- BookmarkList.cs
- precedingquery.cs
- ButtonChrome.cs
- ToolStripScrollButton.cs
- LassoSelectionBehavior.cs
- CheckBoxStandardAdapter.cs
- Main.cs
- AtomMaterializer.cs
- XmlException.cs
- LinkUtilities.cs
- CircleHotSpot.cs
- MenuItemCollectionEditorDialog.cs
- FontWeights.cs
- CustomPopupPlacement.cs
- OutputCacheProfile.cs
- autovalidator.cs
- PeerHelpers.cs
- Invariant.cs
- FontClient.cs
- SafeRightsManagementSessionHandle.cs
- ZoomPercentageConverter.cs
- XAMLParseException.cs
- HighlightComponent.cs
- SemanticResolver.cs
- ConstNode.cs
- HostProtectionPermission.cs
- IOThreadTimer.cs
- Base64Decoder.cs
- HtmlInputText.cs
- DiscoveryClientChannelFactory.cs
- BamlRecords.cs
- PeerNameRecord.cs
- SiteMapDataSourceView.cs
- WebResourceAttribute.cs
- RadioButtonPopupAdapter.cs
- Stylesheet.cs
- MetadataProperty.cs
- VectorKeyFrameCollection.cs
- DiagnosticsConfigurationHandler.cs
- CustomWebEventKey.cs
- PinProtectionHelper.cs
- GenericWebPart.cs
- ApplicationSecurityManager.cs
- SettingsPropertyValueCollection.cs
- UnauthorizedWebPart.cs
- Resources.Designer.cs
- GridViewUpdatedEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PagerStyle.cs