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
- RegistryPermission.cs
- TextCompositionEventArgs.cs
- AnimatedTypeHelpers.cs
- ProgressBarHighlightConverter.cs
- AnnotationAdorner.cs
- UnorderedHashRepartitionStream.cs
- PointCollectionValueSerializer.cs
- Stackframe.cs
- XmlLinkedNode.cs
- WebPartRestoreVerb.cs
- FrameworkContentElement.cs
- ConfigurationElementProperty.cs
- XmlDataLoader.cs
- RectAnimationBase.cs
- VersionedStream.cs
- XmlReaderSettings.cs
- TraceData.cs
- SystemIcmpV4Statistics.cs
- ISAPIApplicationHost.cs
- RawStylusSystemGestureInputReport.cs
- DataGrid.cs
- OdbcInfoMessageEvent.cs
- Attributes.cs
- UITypeEditor.cs
- DataServiceHostFactory.cs
- WindowsListViewGroupHelper.cs
- Viewport3DVisual.cs
- StatusBar.cs
- TextServicesManager.cs
- SqlCommandSet.cs
- TraceHandler.cs
- OleDbConnectionFactory.cs
- ECDiffieHellman.cs
- SecurityTokenException.cs
- DeferrableContent.cs
- SerializationFieldInfo.cs
- ConfigurationLockCollection.cs
- DataError.cs
- HostedElements.cs
- AbandonedMutexException.cs
- XsltException.cs
- FontUnitConverter.cs
- ValidationPropertyAttribute.cs
- Rectangle.cs
- DataSetViewSchema.cs
- MappingItemCollection.cs
- TemplateColumn.cs
- AddInStore.cs
- SqlParameterCollection.cs
- EventBookmark.cs
- GenericWebPart.cs
- RepeatInfo.cs
- Decoder.cs
- ListViewItem.cs
- OdbcConnectionPoolProviderInfo.cs
- MeshGeometry3D.cs
- TextParaClient.cs
- ConfigurationProperty.cs
- BaseCollection.cs
- CursorConverter.cs
- NullableIntSumAggregationOperator.cs
- SequenceFullException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SplineQuaternionKeyFrame.cs
- DictionaryBase.cs
- SqlXml.cs
- AccessDataSourceView.cs
- DataRelation.cs
- ObjectKeyFrameCollection.cs
- DataServiceEntityAttribute.cs
- RegexInterpreter.cs
- XmlToDatasetMap.cs
- Style.cs
- OperationAbortedException.cs
- State.cs
- ThreadInterruptedException.cs
- MiniCustomAttributeInfo.cs
- Version.cs
- Int64AnimationUsingKeyFrames.cs
- CodeTryCatchFinallyStatement.cs
- SimpleType.cs
- WindowsToolbar.cs
- PrivilegeNotHeldException.cs
- SqlRemoveConstantOrderBy.cs
- PropertyIDSet.cs
- NonVisualControlAttribute.cs
- DocumentStatusResources.cs
- WebBrowserPermission.cs
- SaveFileDialogDesigner.cs
- AttachmentService.cs
- CompiledQueryCacheEntry.cs
- LinkConverter.cs
- XmlSchemaAny.cs
- RubberbandSelector.cs
- ExpandCollapseProviderWrapper.cs
- ViewCellRelation.cs
- WindowsStatusBar.cs
- XmlComplianceUtil.cs
- OleDbSchemaGuid.cs
- SamlConditions.cs