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
- ControlType.cs
- WeakReferenceList.cs
- Transform3D.cs
- RequiredFieldValidator.cs
- sqlinternaltransaction.cs
- RawStylusInputCustomDataList.cs
- DbMetaDataColumnNames.cs
- PropertyChangedEventArgs.cs
- rsa.cs
- RuntimeArgumentHandle.cs
- InkCanvasAutomationPeer.cs
- DataGridViewComboBoxColumn.cs
- UnitySerializationHolder.cs
- ConfigurationFileMap.cs
- WebBrowserHelper.cs
- Comparer.cs
- DataObjectMethodAttribute.cs
- Site.cs
- ToolStripRenderEventArgs.cs
- PageHandlerFactory.cs
- ThrowOnMultipleAssignment.cs
- unitconverter.cs
- ResXBuildProvider.cs
- WindowsIdentity.cs
- TransformGroup.cs
- QueryExpr.cs
- ReadOnlyObservableCollection.cs
- InstanceStore.cs
- FrameSecurityDescriptor.cs
- SimpleWorkerRequest.cs
- ServiceModelConfigurationSectionCollection.cs
- IconBitmapDecoder.cs
- SrgsElementList.cs
- FontFamily.cs
- WorkflowOperationErrorHandler.cs
- WebPartConnectionsDisconnectVerb.cs
- EntityDesignerDataSourceView.cs
- XComponentModel.cs
- TemplatePartAttribute.cs
- RichTextBox.cs
- Utils.cs
- precedingquery.cs
- DriveInfo.cs
- loginstatus.cs
- ObjectStorage.cs
- AnnouncementService.cs
- WindowCollection.cs
- Byte.cs
- ConstraintConverter.cs
- ChameleonKey.cs
- Merger.cs
- OutOfProcStateClientManager.cs
- InstanceOwnerQueryResult.cs
- GenericsInstances.cs
- SingleAnimation.cs
- DelegateSerializationHolder.cs
- SharedPersonalizationStateInfo.cs
- CustomSignedXml.cs
- Fonts.cs
- ListChunk.cs
- DataConnectionHelper.cs
- SimpleWebHandlerParser.cs
- XmlObjectSerializerReadContext.cs
- securitycriticaldataClass.cs
- MediaPlayer.cs
- NativeRecognizer.cs
- HostUtils.cs
- EntityExpressionVisitor.cs
- unitconverter.cs
- ListViewInsertedEventArgs.cs
- Subset.cs
- DecimalConverter.cs
- Point3DAnimationBase.cs
- RectKeyFrameCollection.cs
- RevocationPoint.cs
- TextContainerHelper.cs
- ParameterModifier.cs
- CookieProtection.cs
- Oid.cs
- InstanceDataCollection.cs
- BrowsableAttribute.cs
- IssuedTokenClientElement.cs
- EntityViewGenerator.cs
- OleDbErrorCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- PaperSize.cs
- ReachBasicContext.cs
- GlyphInfoList.cs
- StringBuilder.cs
- ScriptModule.cs
- ProtocolElementCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlTextAttribute.cs
- EventLog.cs
- NumericUpDownAccelerationCollection.cs
- AssociationTypeEmitter.cs
- BinaryObjectInfo.cs
- ParserContext.cs
- DbBuffer.cs
- DataGridViewCheckBoxCell.cs