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
- ControlPaint.cs
- UserUseLicenseDictionaryLoader.cs
- PointHitTestResult.cs
- IBuiltInEvidence.cs
- TextRunProperties.cs
- RelativeSource.cs
- TrackingStringDictionary.cs
- Int32AnimationBase.cs
- Parser.cs
- FixedDSBuilder.cs
- SqlDeflator.cs
- ColorBlend.cs
- JournalEntryStack.cs
- HelpPage.cs
- AbandonedMutexException.cs
- Soap11ServerProtocol.cs
- StrokeRenderer.cs
- TargetException.cs
- RoleService.cs
- TraceContextEventArgs.cs
- CollectionBase.cs
- EventLogException.cs
- ErrorWrapper.cs
- KeyEvent.cs
- XmlQueryType.cs
- AnnotationObservableCollection.cs
- SqlDataSourceCache.cs
- D3DImage.cs
- TypeToken.cs
- ComboBox.cs
- ObjectMemberMapping.cs
- RenderData.cs
- DiscoveryClientBindingElement.cs
- ResourceProviderFactory.cs
- InternalControlCollection.cs
- ServiceDocument.cs
- Unit.cs
- BaseParser.cs
- HttpHandlersSection.cs
- Material.cs
- SequenceRange.cs
- SignerInfo.cs
- MsmqMessage.cs
- EDesignUtil.cs
- XmlElementAttributes.cs
- InstancePersistenceEvent.cs
- _AcceptOverlappedAsyncResult.cs
- ConfigXmlCDataSection.cs
- DefaultClaimSet.cs
- Literal.cs
- ToolStripStatusLabel.cs
- Accessible.cs
- ImageList.cs
- ImageBrush.cs
- ArcSegment.cs
- SQLCharsStorage.cs
- StickyNote.cs
- CalendarAutoFormat.cs
- DockPattern.cs
- DataServiceClientException.cs
- HttpApplicationFactory.cs
- SQlBooleanStorage.cs
- Object.cs
- DataGridViewSelectedColumnCollection.cs
- MbpInfo.cs
- ConfigurationStrings.cs
- TypeExtensionConverter.cs
- ConsumerConnectionPointCollection.cs
- HiddenField.cs
- PolicyException.cs
- RequestCacheManager.cs
- StreamUpgradeInitiator.cs
- BaseCodePageEncoding.cs
- Filter.cs
- CopyOfAction.cs
- IERequestCache.cs
- IList.cs
- TreeNodeClickEventArgs.cs
- SqlConnectionFactory.cs
- ContextMenuAutomationPeer.cs
- DocumentCollection.cs
- xmlfixedPageInfo.cs
- FontStyleConverter.cs
- FaultReasonText.cs
- GraphicsState.cs
- DateTimeOffsetConverter.cs
- Localizer.cs
- GridLength.cs
- Annotation.cs
- PropertyGridEditorPart.cs
- LongCountAggregationOperator.cs
- TriggerCollection.cs
- TimeSpanStorage.cs
- ClientSettingsStore.cs
- StylusCollection.cs
- ListManagerBindingsCollection.cs
- DesignerForm.cs
- SettingsPropertyNotFoundException.cs
- DataGridViewSortCompareEventArgs.cs
- GeneratedView.cs