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
- SystemColorTracker.cs
- XmlILConstructAnalyzer.cs
- FontDriver.cs
- StateManagedCollection.cs
- ClockGroup.cs
- diagnosticsswitches.cs
- ProxyElement.cs
- ProgressBarBrushConverter.cs
- Monitor.cs
- XmlAttributes.cs
- UserPersonalizationStateInfo.cs
- ACL.cs
- VariableQuery.cs
- CompositeFontParser.cs
- StringUtil.cs
- WebPartZone.cs
- EncryptedHeader.cs
- DashStyle.cs
- FormViewUpdateEventArgs.cs
- InkCanvasAutomationPeer.cs
- SafeRegistryHandle.cs
- PointCollectionConverter.cs
- Shape.cs
- FaultCallbackWrapper.cs
- ContentOperations.cs
- XmlDataSourceNodeDescriptor.cs
- HiddenFieldPageStatePersister.cs
- ProtocolsConfigurationHandler.cs
- WindowsEditBoxRange.cs
- PolicyConversionContext.cs
- FileDialogPermission.cs
- CollectionDataContractAttribute.cs
- LocatorGroup.cs
- SignatureDescription.cs
- DynamicRendererThreadManager.cs
- NodeInfo.cs
- UIPropertyMetadata.cs
- ResXResourceReader.cs
- TabItemWrapperAutomationPeer.cs
- SynchronizationLockException.cs
- DrawingAttributes.cs
- XmlSchemaType.cs
- XmlRawWriter.cs
- XmlParser.cs
- columnmapkeybuilder.cs
- UnknownBitmapDecoder.cs
- OleDbPermission.cs
- InstanceOwnerQueryResult.cs
- SecurityKeyIdentifierClause.cs
- DropDownList.cs
- _LoggingObject.cs
- UntrustedRecipientException.cs
- XmlSchemaComplexContentExtension.cs
- WindowsFormsHelpers.cs
- InvalidPrinterException.cs
- DiagnosticTraceSource.cs
- CompiledIdentityConstraint.cs
- DynamicMethod.cs
- EpmCustomContentSerializer.cs
- UrlPropertyAttribute.cs
- LineSegment.cs
- SigningCredentials.cs
- WebPartDescriptionCollection.cs
- Bold.cs
- AppDomainManager.cs
- SessionStateItemCollection.cs
- Identifier.cs
- TreeNodeStyle.cs
- ObjectDataSourceEventArgs.cs
- SqlMethodAttribute.cs
- EdgeProfileValidation.cs
- Form.cs
- WebPartsSection.cs
- DbTypeMap.cs
- SmiRequestExecutor.cs
- SmiRecordBuffer.cs
- WindowsAltTab.cs
- CounterCreationDataConverter.cs
- OpCodes.cs
- SuppressMergeCheckAttribute.cs
- TreeNodeStyle.cs
- BinaryEditor.cs
- PrintingPermission.cs
- EventSinkActivity.cs
- NotFiniteNumberException.cs
- XmlSerializationGeneratedCode.cs
- BamlBinaryReader.cs
- PropertyTabAttribute.cs
- DesignTimeTemplateParser.cs
- SqlServices.cs
- SiteMapSection.cs
- LogWriteRestartAreaState.cs
- XmlUtf8RawTextWriter.cs
- XamlStyleSerializer.cs
- ConstraintConverter.cs
- WinFormsComponentEditor.cs
- XmlUrlResolver.cs
- XmlSchemaAnnotated.cs
- AdRotator.cs
- StylusButtonEventArgs.cs