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
- FixedMaxHeap.cs
- WebAdminConfigurationHelper.cs
- RemoveStoryboard.cs
- PointCollection.cs
- CanonicalFormWriter.cs
- DataGridViewCheckBoxColumn.cs
- GridViewItemAutomationPeer.cs
- Int32CollectionConverter.cs
- ThreadStateException.cs
- WindowsClientElement.cs
- UrlMappingCollection.cs
- FamilyMap.cs
- RouteItem.cs
- QilParameter.cs
- FieldAccessException.cs
- MetadataSerializer.cs
- FamilyTypeface.cs
- IgnorePropertiesAttribute.cs
- Certificate.cs
- ElementMarkupObject.cs
- FramingEncoders.cs
- ScriptMethodAttribute.cs
- BitmapFrameDecode.cs
- DoubleStorage.cs
- BitConverter.cs
- EntityDataSource.cs
- TextBoxRenderer.cs
- OutgoingWebResponseContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CssTextWriter.cs
- SHA1Cng.cs
- CurrentChangingEventArgs.cs
- StylusButtonEventArgs.cs
- TreeNodeClickEventArgs.cs
- EditingScopeUndoUnit.cs
- Run.cs
- Point4D.cs
- ToolTipAutomationPeer.cs
- CmsInterop.cs
- DataGridToolTip.cs
- TextWriter.cs
- DirtyTextRange.cs
- MetadataUtilsSmi.cs
- TreeNodeStyle.cs
- RoleManagerEventArgs.cs
- BinaryReader.cs
- InvokePatternIdentifiers.cs
- TypeDescriptor.cs
- Menu.cs
- COM2Enum.cs
- CatalogPartChrome.cs
- XmlnsDefinitionAttribute.cs
- FormatStringEditor.cs
- Soap.cs
- FigureParagraph.cs
- BlockUIContainer.cs
- CaseInsensitiveComparer.cs
- DrawingServices.cs
- ToolStripItemRenderEventArgs.cs
- CachedTypeface.cs
- ObjectDataSourceView.cs
- DtrList.cs
- AtomServiceDocumentSerializer.cs
- SubclassTypeValidatorAttribute.cs
- isolationinterop.cs
- AttributeAction.cs
- PictureBox.cs
- LeaseManager.cs
- MLangCodePageEncoding.cs
- FieldToken.cs
- CommonXSendMessage.cs
- RuntimeConfig.cs
- FileVersion.cs
- ColumnResizeAdorner.cs
- ObjectComplexPropertyMapping.cs
- PriorityChain.cs
- Annotation.cs
- PointAnimationUsingKeyFrames.cs
- WsdlBuildProvider.cs
- SafeSecurityHandles.cs
- OdbcParameter.cs
- EventRoute.cs
- WebConfigurationManager.cs
- XamlStream.cs
- EntityProxyFactory.cs
- ScrollBarAutomationPeer.cs
- DataTransferEventArgs.cs
- SqlClientWrapperSmiStreamChars.cs
- RegexEditorDialog.cs
- MsmqEncryptionAlgorithm.cs
- Mapping.cs
- ViewGenerator.cs
- WindowsRichEdit.cs
- TypeNameConverter.cs
- ByteRangeDownloader.cs
- ServiceHostingEnvironmentSection.cs
- ScrollEvent.cs
- CheckBoxList.cs
- EncryptedData.cs
- UidManager.cs