Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / ThreadAbortException.cs / 1305376 / 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 { [System.Security.SecuritySafeCritical] // auto-generated 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 { [System.Security.SecuritySafeCritical] // auto-generated 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
- LogRecordSequence.cs
- PauseStoryboard.cs
- User.cs
- HtmlForm.cs
- XmlIncludeAttribute.cs
- ProgressBarBrushConverter.cs
- VisualBrush.cs
- WindowsRegion.cs
- StringComparer.cs
- ByteFacetDescriptionElement.cs
- ColorEditor.cs
- AstNode.cs
- Variant.cs
- XmlSchemaSequence.cs
- EntityContainerEntitySet.cs
- TypeEnumerableViewSchema.cs
- cache.cs
- AlphaSortedEnumConverter.cs
- ArrayConverter.cs
- DataGridViewImageCell.cs
- _RegBlobWebProxyDataBuilder.cs
- OrderedEnumerableRowCollection.cs
- BulletedList.cs
- ProviderMetadata.cs
- WebBrowserNavigatedEventHandler.cs
- TableRow.cs
- CheckBox.cs
- MessageSecurityOverMsmq.cs
- BooleanExpr.cs
- Int16AnimationUsingKeyFrames.cs
- ThreadAttributes.cs
- ReachDocumentPageSerializerAsync.cs
- ServiceOperationParameter.cs
- XmlSchemaGroup.cs
- TiffBitmapDecoder.cs
- Literal.cs
- AssemblyCache.cs
- ProxyManager.cs
- CqlParser.cs
- BinaryNode.cs
- KeyValueSerializer.cs
- XmlDataDocument.cs
- PerfProviderCollection.cs
- ToolStripItemGlyph.cs
- WindowInteractionStateTracker.cs
- SignalGate.cs
- HasCopySemanticsAttribute.cs
- UnitySerializationHolder.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ConstraintCollection.cs
- GatewayDefinition.cs
- Rule.cs
- ServiceMetadataExtension.cs
- BeginCreateSecurityTokenRequest.cs
- SubMenuStyleCollection.cs
- TrackBar.cs
- TraceSection.cs
- CollectionType.cs
- ActionMessageFilter.cs
- StylusPointProperties.cs
- Calendar.cs
- DataServiceConfiguration.cs
- SchemaDeclBase.cs
- StreamResourceInfo.cs
- columnmapkeybuilder.cs
- Utils.cs
- InstanceKeyCollisionException.cs
- DbDataReader.cs
- MailWriter.cs
- LinkedResource.cs
- DockProviderWrapper.cs
- WriterOutput.cs
- NullReferenceException.cs
- CollectionViewGroupInternal.cs
- SizeAnimationBase.cs
- MemberDescriptor.cs
- ServiceModelTimeSpanValidator.cs
- XmlComplianceUtil.cs
- ScrollBar.cs
- RenderingEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- UIPermission.cs
- TableAdapterManagerHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- SafeFileHandle.cs
- FontStyleConverter.cs
- GlyphCache.cs
- ScalarOps.cs
- QilInvokeEarlyBound.cs
- TemplateField.cs
- Rectangle.cs
- MediaEntryAttribute.cs
- RenderDataDrawingContext.cs
- TypedElement.cs
- InstanceLockQueryResult.cs
- EncodingStreamWrapper.cs
- Invariant.cs
- AdapterUtil.cs
- TreeViewItemAutomationPeer.cs
- RenderData.cs