Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SortExpressionBuilder.cs
- CharConverter.cs
- MailSettingsSection.cs
- DeploymentSectionCache.cs
- ImageSourceValueSerializer.cs
- FixedDSBuilder.cs
- NumericPagerField.cs
- CustomAttributeFormatException.cs
- OdbcEnvironmentHandle.cs
- QuaternionAnimation.cs
- SharedUtils.cs
- QualificationDataAttribute.cs
- BufferedWebEventProvider.cs
- TextAutomationPeer.cs
- Trace.cs
- SecurityHeaderLayout.cs
- XmlWrappingWriter.cs
- XmlCustomFormatter.cs
- StylusOverProperty.cs
- GenerateHelper.cs
- UIElementHelper.cs
- OleDbParameterCollection.cs
- SQlBooleanStorage.cs
- QilInvokeLateBound.cs
- _NestedSingleAsyncResult.cs
- DockAndAnchorLayout.cs
- PromptBuilder.cs
- ComponentCache.cs
- Errors.cs
- _Rfc2616CacheValidators.cs
- HttpCookie.cs
- ControlIdConverter.cs
- DataServiceHostWrapper.cs
- ListMarkerLine.cs
- ExternalFile.cs
- AncestorChangedEventArgs.cs
- EntityReference.cs
- Typography.cs
- DataBindingValueUIHandler.cs
- CharacterString.cs
- AuthorizationContext.cs
- RawAppCommandInputReport.cs
- DbConnectionFactory.cs
- OdbcCommand.cs
- AsyncDataRequest.cs
- DiscoveryDocument.cs
- BitStream.cs
- QueryGenerator.cs
- DynamicQueryableWrapper.cs
- RSAPKCS1SignatureDeformatter.cs
- TabControlAutomationPeer.cs
- DocumentPageView.cs
- PanelStyle.cs
- ToolStripItem.cs
- DataGridLength.cs
- PageWrapper.cs
- Deflater.cs
- AstNode.cs
- ResourceDictionaryCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- DiscardableAttribute.cs
- Viewport3DVisual.cs
- PenLineCapValidation.cs
- ReachFixedDocumentSerializer.cs
- DirtyTextRange.cs
- SEHException.cs
- SqlDataSourceConfigureSelectPanel.cs
- MultiPageTextView.cs
- DataGridViewCellCollection.cs
- XmlStreamStore.cs
- Propagator.Evaluator.cs
- MD5.cs
- Wizard.cs
- SchemaComplexType.cs
- Win32.cs
- WebPartMenu.cs
- SmtpMail.cs
- XPSSignatureDefinition.cs
- OleDbConnectionInternal.cs
- DrawingDrawingContext.cs
- SortExpressionBuilder.cs
- SerialPinChanges.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CodeCommentStatementCollection.cs
- InstanceOwner.cs
- TextFragmentEngine.cs
- TimeSpanStorage.cs
- DataGridItemEventArgs.cs
- InkPresenter.cs
- TextTreeText.cs
- BaseTreeIterator.cs
- OverflowException.cs
- OleDbDataAdapter.cs
- SingleAnimation.cs
- MDIControlStrip.cs
- WindowsToolbar.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PropertyRef.cs
- TextBoxLine.cs
- DataComponentNameHandler.cs